FORMAT "LIST_FORMAT"
Placeholder | Replace With |
LIST_FORMAT | An example of the conjunction and punctuation desired, for example, a, b, and c or a; b; or c. |
The FORMAT "LIST_FORMAT" instruction allows you to create a sentence-style list within a computation. (If you create the REPEAT instruction using a REPEAT field , you can specify the list format by choosing a style from the Format drop-down list. See Punctuate a Sentence-Style List.)
For example, perhaps you want the items in your list to appear with the final comma preceding the and. Your script would look like this:
"" REPEAT Education Information
FORMAT "A, B, and C"
RESULT + Degree Designation
END REPEAT
RESULT
Once a user has provided the list of educational degrees in Education Information, the FORMAT instruction ensures that the requisite commas are in place.
FORMAT instructions should be placed immediately after the REPEAT instructions for repeated dialogs, and before other instructions influencing the REPEAT (such as FILTER or ASCEND and DESCEND.