IF Statements

Designer Administrator
This manual is in pilot operation.

Depending on the condition, selects and returns one of two values. There are two forms of IF statements.

(Form 1) IF statement with an ELSE clause

  IF expressionA THEN expressionB ELSE expressionC ENDIF

If expressionA is "True", it returns the value of expressionB; if expressionA is "False", it returns the value of expressionC.

(Form 2) IF statement without an ELSE clause

  IF expressionA THEN expressionB ENDIF

If expressionA is "True", it returns the value of expressionB; if expressionA is "False", it returns "True".

⚠ In both Form 1 and Form 2, the value returned by expressionA is interpreted converting it to a boolean type.