TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-135
#EMPTY Built-In Function
#EMPTY Built-In Function
Use #EMPTY to determine if some specified text is empty.
text
is the text to be examined.
Result
#EMPTY returns -1 if text is empty; otherwise, it returns 0.
Considerations
TACL considers text to be empty if it contains nothing but spaces or end-of-lines.
Use the #EMPTYV built-in function to determine whether a variable level or quoted
text is empty.
Example
This example from a macro verifies that the nth argument contains text before
processing that argument.
[#IF NOT [#EMPTY % n%] |THEN|
...
code for nonempty nth argument
...
]
#EMPTY [ text ]