Select Case .....End Select

Jeremy Leach

Senior Member
Hi

In the ideal world I'd like to be able to use this type of statement, which I often use in Visual Basic. It's programmatically a very clear way of doing actions depending on a variable's value.

I always find it a bit of a chore to do similar with the PicAxe Basic.
 

andrewpro

New Member
Using lookdown and branch is about as close as I can think to select case. Granted, it's an extra step, but it's not that bad. Technically only 2 lines of code. Lookdown to get an offset from a pre-defined list, then branch from the value returned by lookdown.

Sorry if your already doing it this way, jsut passing it on how I've done it.
 
Top