Set logic specifies which, how many and in what sequence forms can appear in a set. It also determines when a new set begins (called set break). Specify set logic in the Set definition dialog.
Normally, it is clear from the structure of a set when one set is finished and a new one begins. However, some sets require a break controlled by a field value on a form.
The typical case is when a set consists of one form that occurs again and again with different page numbers. The page number appears in a field that you defined on the form, and whenever that field has a 1 in it (page 1), FORMS begins a new set.
In cases like this, or whenever a set break is controlled by a page number or any other field value, you must use a break expression to tell Scan, or Interpret if importing image files, when a new set starts. A break expression must consist of a field name, the equal sign (=), and a numeric constant.
Break expressions must be specified on a form definition at level 1.
Assuming there is a field named Page, the break expression would be:
Page=1
Scan (or Interpret, if imported images are used) interprets the Page field, and as it finds a form with a Page value equal to 1, it starts a new set.
Example:
A number of people are filling in one or more pages of a single type of form called Questionnaire. All the pages filled in by one person must be processed together as a set. If a set consists of more than one page, the pages are numbered in a field called Page.
In this case, the set definition is as follows:
Form structure Level From To Seq Break
Questionnaire 1 1 999 - Page=1
The number 999 under To indicates that an infinite number of forms is allowed. The Sequence is of no consequence since there is only one form definition in the set.
In this example, every time Scan finds a Page field with the value 1, it starts a new set.