Return to Statement


Logical IF Boolean Operators Example 2 (OR)

The following example accomplishes a certain task by using logical IF statements with simple expressions.

   A=0
B=10
C=100
IF/A==10,JUMP/A1:
IF/B<>10,JUMP/A2:
A1:
D=C/(A+B)
A2:

The following example accomplishes the same task by using a logical IF statement with a compound expression.

   A=0
B=10
C=100
IF/A==10 OR B==10,D=C/(A+B)