Some scripting functions are always true

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2.3.0b1
    • Affects Version/s: 2.2.3
    • Component/s: 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 "".

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

              Created:
              Updated:
              Resolved:

                Version Package
                2.3.0b1