Return to Statement


Logical IF Boolean Operators Example 1 (AND)

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

   A=10
B=10
C=20
D=20
IF/A<>B,JUMP/A1:
IF/C==D,PRINT/'BOTH EXPRESSIONS ARE TRUE'
A1:

The same task can be accomplished using a logical IF statement with a compound expression.

   A=10
B=10
C=20
D=20
IF/A==B AND C==D,PRINT/'BOTH EXPRESSIONS ARE
TRUE'