| Group: | Flow Control |
| See also: | switch case break default |
| Function: | endsw | |
| Description: | endsw finishes a switch-endsw block. It serves as branch destination for the different breaks inside the block. |
| 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
| Group: | Flow Control |
| See also: | switch case break default |