The IF and IFNOT commands are used to start an IF-group to provide processing, based on the actual contents of the screen. An IF-group must be ended with an ENDIF or an END-IF command.
If an IF-group contains an ELSE command, then commands between the IF command and the ELSE command are referred to as an IF-group and the commands between the ELSE command and the END-IF command are referred to as an ELSE-group.
The IF command and the IFNOT command are syntactically equal and perform inverse processing. All the rules which relate to the IF command are equally valid for the IF command.
The IF command takes the following general format:
IF expression
where expression is in the general format
item value
where item can be any of the following:
and value is the value with which the item is compared.
If an IF-group expression is satisfied, every command up to the END-IF is executed, followed by the command immediately following the END-IF command. If an IF-group expression is not satisfied, the script processes the ELSE group (if specified) followed by the next command following the END-IF command.
The END-IF command takes either of the following formats:
END-IF ENDIF
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |