IF {(expr)} {cmd}
Description:
Checks to see if the specified expression returns true, and if it does, executes the specified command.
Arguments:EXPRESSION {(expr)} - the specified expression.
COMMAND {cmd} - the specified command to execute.
Example of usage:
SET 0 0; PROC MAIN; SAY %^0; SET 0 (%^0 $+ 1); IF (%^0$<5) CALL MAIN; END; CALL MAIN;Output:
0 1 2 3 4