Jump to navigation Jump to search
It appeared in early versions of APL. In some APL dialects it was superseded by the more modern control structures.
⍝ If-Then-Else construct →(~B)/Else S1 →End Else: S2 End:
⍝ Select construct →(Case1, Case2, Case3, Case4)[i] Case1: S1 →Next Case2: S2 →Next Case3: S3 →Next Case4: S4 Next:
⍝ While-Do construct While:→(~B)/Done S1 →While Done:
⍝ Repeat-Until construct Repeat:S2 →(~B)/Repeat