endcase
An endcase statement specifies the end of a piece of code you are specifying for a case statement. Use this command in combination with case, endcase, select and endselect to create a select statement.
state = 1
select state case 1: print ( "state is 1" ) endcase endselect