$IFNOTEMPTY$ Macro Command

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 empty string, 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$ $MEMBER-NEEDS-MODULE$

The full name of member is $MEMBER-NAME$.

$ELSEIF$

The full name of member is $MEMBER-NAME$ ($MEMBER-MODULE$).

$END-IFNOTEMPTY$

 

See read-only macros.

 

Send feedback to Helixoft
© 2000-2005 Helixoft. All rights reserved.