Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1667

Some scripting functions are always true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.3.0b1
    • 2.2.3
    • Scripting
    • None

      Some scripting functions, that look like they should be used as a boolean condition in an $if, will always evaluate to true. Affected are $is_complete, $startswith and $endswith.

      Examples:

      $if($startswith(%tag%,The),$set(other,1))

      The reason is that the affected functions return "0" on false condition, as opposed to other condition checking functions that return "".

            outsidecontext Philipp Wolfer
            outsidecontext Philipp Wolfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.3.0b1