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

Some scripting functions are always true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.3.0b1
    • Component/s: Scripting
    • Labels:
      None

      Description

      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 "".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2.3.0b1