SWITCH
# @SWITCH is used to control the execution path of a test
# procedure when there are several paths that can be taken,
# depending on the value of some integer variable.
#
# The "switch variable" is the label of a variable or a
# computed expression. The "switch variable" may be an
# integer or string.
#
# for each line or "case", if the case matches the value of
# the switch variable, then the corresponding "path" is executed
#
# if no match is found, then the current mode is executed
#
# For asset.01.Jul.B and later releases, the "case" may be
# a constant, variable, or computed expression
#
# In the example below, if the value of the variable "count" was
# 2, then the procedure would jump to mode 92
# a maximum of 64 cases may be specified (32 prior to asset.01.Jul.B)
@SWITCH
#switch variable
count
#case path
1 91
2 92
3 /specs/gp/gp_test3
4 /specs/gp/my_errors;33
5 RETURN
my_switch 20
"my_switch + 1[none]" 21
###############################
#SWITCH example using strings
@SWITCH
#switch variable
my_string
#case path
'case 1' 101
'case 2' 102
'EOT' RETURN