17.16.5.58 SKIPIF

Description: Compares the values designated by the expressions in comparison using the operator designated by comparison-operator. If the comparison is true, SKIPIF cancels the current merge document, moves to the next data record in the data source, and starts a new merge document. If the comparison is false, the current merge document is continued.

[Note: comparison-operator can be any one of the six relational and equality operators specified for operator (17.16.3.3). end note]

If comparison-operator is = or <>, the right-hand expression operand can contain a question mark (?) to represent any single character, or an asterisk (*) to represent any string of characters. The expression shall be enclosed in quotation marks so that it is compared as a character string.

Field Value: None.

Switches: None.

[Example: Inserted into a mail merge main document, the following field examines the contents of the Order field for the current data record. If the field contains a number less than 100, no merged document is produced for that data record.

SKIPIF MERGEFIELD Order < 100

end example]

Syntax:

Last updated on