select variable
A select statement allows you to branch to different actions based on the value of the provided variable. The variable can be an integer, real or string value. Use this command in combination with case, endcase and endselect to create a select statement.
state = 1
select state case 1 print ( "state is 1" ) endcase case 2 print ( "state is 2" ) endcase endselect