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

Negation dos not work correctly after update from 1.6 to 2.2

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      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

            • Assignee:
              cbrisson Claude Brisson
              Reporter:
              AlBundy33 Al Bundy

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment