Custom Control Logical Expressions

You can insert a logical expression (IF/ELSE) into a custom control as events. When the custom control is run the logical expression is evaluated and the results executed.

Note: Logical expressions are not validated when inserted or executed. Ensure the logic expressions in your custom control are well formed before executing the custom control.

The following logical events are supported:

  • If — the start of a boolean expression requiring a variable, operator, and condition. If the expression returns true the custom control events inserted after this event are executed. If the expression returns false the custom control jumps to the next boolean condition (Else If or Else) or end (End If).
  • Else If — the start of a nested boolean expression where the parent boolean expression has returned false and another boolean expression is evaluated. An Else If, unlike an If, will only be evaluated if the parent If or Else If has returned false.
  • Else — the end of a boolean expression where the current If (If or Else If) evaluation has returned false. The custom control events inserted after this event are executed only when the If evaluation returns false.
  • End If — the end of the boolean expression. The End If is required for the expression to be evaluated properly. The custom control events inserted after this event are always executed.