NEW
  PREFIX
AUTO 4,1
#!/BIN/SH
#
#  Script to Demonstrate the SWITCH Command
#
READ -P "VAR:" VAR
ECHO \r\n
SWITCH $VAR
    CASE 1
        ECHO CASE IS 1
        BREAK
    CASE 2
    CASE 3
        ECHO CASE IS 2 OR 3
        BREAK
    DEFAULT
        ECHO CASE IS SOMETHING ELSE : $VAR
END
ECHO ...
EXIT $VAR


MAN
TEXT /MAKE/USR/SHARE/EXAMPLES/SWITCHDEMO
