--> x=1
x =
1.
--> if x>0 then,y=-x,else,y=x,end
y =
- 1.
--> x=-1
x =
- 1.
--> if x>0 then,y=-x,else,y=x,end
y =
- 1.
The select-case conditional compares an expression to several possible expressions and performs the instructions following the first case which equals the initial expression.
--> x=-1
x =
- 1.
--> select x,case 1,y=x+5,case -1,y=sqrt(x),end
y =
i
It is possible to include an else statement for the condition
where none of the cases are satisfied.