Constants work for states. This is what I was getting after.
rem
rem Constants for use in select/case
rem
#constant game_mainMenu 1
#constant game_mainGame 2
#constant game_mainEnd 3
game_mainState as integer = game_mainMenu
do
select game_mainState
Case game_mainMenu:
Print("Hi")
game_mainState = game_mainGame
endcase
Case game_mainGame:
Print(" to ")
game_mainState = game_mainEnd
endcase
Case game_mainEnd:
Print("You")
game_mainState = game_mainMenu
endcase
endselect
SYNC()
loop
Of course it flashes through the text prints, but the point is that it's going through the states.
You just have to set them up as constants and they work.