Immediate conditional assembly block directive Format .IIF condition [,]argument(s), statement
1 – Parameters
condition One of the legal condition tests defined for conditional assembly blocks (see the description of .IF). The condition must be separated from the arguments by a comma, space, or tab. If the first argument can be a blank, the condition must be separated from the arguments with a comma. argument(s) An expression or symbolic argument associated with the immediate conditional assembly block directive. If the argument is an expression, it cannot contain any undefined symbols. The assembler converts relocatable arguments to absolute arguments by discarding the relocatable portion of the expression and using only the offset from the beginning of the psect. The arguments must be separated from the statement by a comma. statement The statement to be assembled if the condition is satisfied.
2 – Description
.IIF provides a means of writing a one-line conditional assembly block. The condition to be tested and the conditional assembly block are expressed completely within the line containing the .IIF directive. No terminating .ENDC statement is required or allowed.
3 – Notes
o The assembler displays an error message if .IIF specifies a condition test other than those which the assembler considers valid, an illegal argument, or a null argument.
4 – Example
In the following example, the symbol EXAM is defined within the source program: .IIF DEFINED EXAM, BR ALPHA This directive generates the following code: BR ALPHA