Write A Game in 24 hours Contest!

Miscellaneous Forums/General Discussion/Write A Game in 24 hours Contest!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

"hmm actually thats more lines."

Exactly why I used it. I use case statements like this a lot instead of IF, because it is cleaner to read than this:

If A$ = N
   Print "You guessed correctly!"
Else
   Print "You guessed wrong.  Stupid!  You're so stupid!"
Endif


And I can do Select True for those nasty multiple nested IF else blocks:

Select True
   Case A > B Blah()
   Case B > C Blah()
   Case C > D Blah()
   Default Blah()
End Select


Rather than:

If A > B
   Blah()
Else
   If B > C
      Blah()
   Else
       If C > D
          Blah()
       Else
          Blah()
       Endif
   EndIf
EndIf