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

$if() fails when given a single boolean argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0
    • 0.16
    • Scripting
    • None

      Hawke sent me a pm to get some help with a bit of script that wasn't working. It boiled down to $if(other code returning a boolean value), where the $if() was redundant. However, $if() requires a minimum of 2 arguments, so it broke.

      The cleanest solution is, of course, to remove the $if(). However, $if should not break if it's given $if(TRUE) or $if(FALSE); it should just return TRUE or FALSE, depending on that single argument's boolean value.

            mineo Wieland Hoffmann
            brianfreud Brian Schweitzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                1.0