Evaluates an expression and conditionally generates the text.

Syntax

$IFNOTEMPTY$ object

[then-body]

[$ELSEIF$]

[else-body]

$END-IFNOTEMPTY$ 

Object is any macro name. If expansion of object returns non-empty string or a list, then then-body is returned as the expansion of $IFNOTEMPTY$ macro. Otherwise the else-body is returned if any.

The then-body and else-body is any text that can appear inside macro body, which means also another macro call. Thus, $IFNOTEMPTY$ macro may be nested.

Example

$IFNOTEMPTY$ $OVERLOAD-LINK-LIST$

     Url = "$LIST-ITEM-LOCATION$_overloads+$MEMBER-EXT$"

$ELSEIF$

     Url = "$vbdoc-filename$"

$END-IFNOTEMPTY$

See Also