Previous Topic: Edit Action Diagram Panel

Next Topic: Condition Types

Understanding Conditions

A condition specifies the circumstances under which an action, a sequential statement, or an iterative statement is to be executed. Conditions define a particular value for a field. The following examples demonstrate how conditions control processing.

A condition controlling a simple action would be an instance where, if a field’s condition is met, a simple action takes place.

.—CASE

|-RCD.*SFLSEL is *SELECT | Display record details ‘—

A condition controlling a sequence of actions would be an instance within a CASE construct where, if a field’s condition is met, a sequence of actions executes.

.—CASE

|-RCD.*SFLSEL is *SELECT | .-- | : Display record details | ‘-- ‘—-ENDCASE

A condition controlling an iterative constant would be an instance within a REPEAT WHILE construct where while a field’s condition is met, a simple action takes place

.= REPEAT WHILE

|-RCD.Status is Held | Display record details ‘—-ENDWHILE

Similarly, you could define multiple conditions within the same CASE construct to test for various conditions and the actions to take.

.—CASE

| -RCD.*SFLSEL is *SELECT | Display record details | -RCD.*SFLSEL is *Delete | Delete record details | -*OTHERWISE | Update record details ‘—ENDCASE