User manual
ST Assembler-Linker Assembler directives
Doc ID 11392 Rev 4 65/89
Table 45. #IFB
Purpose Conditional on argument being blank.
Format #IFB <arg>
Description
This directive works just like #IF except it doesn't evaluate its argument: it simply
checks to see if it is empty or blank. Spaces count as blank.
Example
check MACRO param1
#IFB param1
%OUT “No param1”
#ELSE
%OUT param1
#ENDIF
MEND
...
check ,
check 5
See also #IF2, #ELSE, #IF, #END
Table 46. #IFIDN
Purpose Conditional on arguments being identical.
Format #IFIDN <arg-1> <arg-2>
Description
This directive works just like #IF except it compares two strings separated by a space.
If identical, the result is true.
Example
check MACRO param1
#IFIDN param1 HELLO
%OUT “Hello”
#ELSE
%OUT “No Hello”
#ENDIF
MEND
See also #IF2, #ELSE, #IF, #END
Table 47. #IFDEF
Purpose Conditional on argument being defined.
Format #IFDEF <exp>
Description This directive works just like #IF except it tests for its argument being defined.
Example
check MACRO param1
#IFDEF param1
%OUT “Arg is OK”
#ELSE
%OUT “Arg is undefined”
#ENDIF
MEND
See also #IF2, #ELSE, #IF, #END