Download PROMULA - Great Migrations
Transcript
Promula Application Development System User's Manual Identifier Description 1 NORTH 2 SOUTH 3 EAST 4 WEST End: Exit Arrows PgUp PgDn Home: Move Ins: Tag Del: Untag Enter: Select Identifier Description 1 NORTH 4 WEST 3.7.95 SELECT set IF Purpose: Select elements of a set according to a condition on a variable indexed by the set. Syntax: SELECT set IF condition Remarks: set is the identifier of the set whose elements are being selected. condition is any true-false expression involving one or more array variables subscripted by set. Only those elements for which condition is true are selected. If condition is false for all elements, the selection is null and all elements of set are selected. To detect and correct for a null set selection use the DO IF NULL statement immediately after the SELECT SET IF statement. An example of this feature is in the section related to the DO IF NULL statement. The selections made by SELECT set IF are made from the current selection vector of set. Thus a cascading, nested selection may be made by executing several SELECT set IF statements in series. Examples: 274