| Group: | Flow Control |
| See also: | switch case default endsw |
| Function: | break | |
| Description: | Inside a switch statement break marks the end of a case block. The procedure is continued at the keyword endsw. It can be omitted. |
| Usage: | switch case (cond) break default endsw | |
proc(y) = sign(x)
switch
case(x<0) y = -1 break
case(x>0) y = 1 break
default y = 0 break ; this break has no effect
endsw
endp
sign(-eh)
Contents of y [1,] -1