[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

SKIPIF

Syntax:

SKIP Expression-1 Operator Expression-2

Expression-1:
expression

Expression-2:
expression

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

Operator can be any one of the six relational and equality operators specified for operator (§2.16.3.3).

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]