Empty Function

Modified on Thu, Feb 15, 2018 at 8:46 AM

Blocks sub-command used inside of a paragraph:

Syntax

!empty {Phone}^^{Fax}^^{Cell}^^{TollFree}%%Print This if all not empty%%Print This if one is empty%%Print This if two are empty   empty!

Breakdown of syntax

!empty                 Command Start

{BlockName}      Blocks separated by ^^

%%                         Separator between blocks and each printed value

empty!                 Command end

Explanation

The command checks all blocks, if they are all not empty then it prints the first value. If one of them is empty then it prints the second value and so on. The number of blocks and separations is not limited.

The number of print values need not be the same as the block names, if they are less , the command will simply returns an empty value.

Example

!empty {Phone}^^{Fax}^^{Cell}^^{TollFree}%%<nextline><nextline>%%<nextline>  empty!

If phone, fax, cell and toll free have values then <nextline><nextline> will be printed. If 3 out of the 4 blocks have values then the command will print <nextline>. All other combinations will not print anything.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article