$if

Provides the ability to selectively execute one of its two statement blocks based on a boolean expression.
Syntax
    $if{boolean_expression}{statement_block_1}{statement_block_2}
DocumentationProvides the ability to selectively execute one of its two statement blocks based on a boolean expression:

    Parameters:
      boolean_expression, a boolean expression.
      statement_block_1, the statement block to be executed if the boolean_expression is true.
      statement_block_2, an optional parameter to specify the statement block to be executed if the boolean_expression is false.
Examples
If a variable named 'some_variable' exists on the current branch then delete it else create it:

    $if{$existsVariable{some_variable}}
      {
      $removeVariable{some_variable}
      }
      {
      $setVariable{some_variable}{some_value}
      }
GroupControl_Flow
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 3