Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-935

Negation dos not work correctly after update from 1.6 to 2.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.2
    • None
    • Engine
    • None

    Description

      With 1.6 we used this

       

      #if ( ! "$!testrun" == "true" )
      ...
      #end

      This ensures that the code is only executed if current run is not a testrun ($testrun false or empty).

       

      Sine update to 2.2 this does not to work.

      In my case $testrun was false, but code was not executed.

      To get this to work I had to use brackets around the equals-check

      #if ( ! ("$!testrun" == "true") )
      ...
      #end
      

      This breaks the logic of a lot of templates...

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            AlBundy33 Al Bundy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: