1
% @(#)branch.mlq 19.1 (ESO-IPG) 02/25/03 14:02:59
9
BRANCH var comparisons labels
13
Do multi-way branching.
16
BRANCH var comparisons labels
18
var = name or contents of key (type integer or character)
20
comparisons = string of integer or character comparison-values
23
labels = string of labels (without colon (:) in the end), separated
29
Chapter 3 of MIDAS Users Guide, volume A
32
If var is equal to any of the comparison-values, flow-of-control is
33
transferred to the corresponding label as given in the parameter
36
If no match is found, the statement following the BRANCH command will
41
BRANCH P1(4:4) A,B,C,D,X LAB_A,LAB_B,LAB_C,LAB_D,LAB_X
42
if P1(4:4) is the character C, a jump to the line with the label
45
BRANCH inputi(11) 2,04,6,8 L1,L2,L3,L4
46
if INPUTI(11) is 4 a jump to the line with label L2: is done