Using Select Case is by far the very best methodology for implementing well structured decision making procedures. I'm a little uncertain as to just how advantageous it can be in PBP, but in Visual Basic, it's a god sent!
Consider the following:
<hr/>Code:SELECT CASE UserInput CASE 1 GOSUB Temperature LOW LED CASE 2 GOSUB LightLevel HIGH LED END SELECT
Much easier to read and much faster. Select Case is a much more efficient, IF statement equivalent. However they can at times be a bit quirky for certain things.
<br/>




Bookmarks