IF and OR

BlitzMax Forums/BlitzMax Beginners Area/IF and OR

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.

Of course there's also:

Select a
case 1,2,3,4 Print "A is 1,2,3 or 4"
case 5 print "A is 5"
case 6,8 Print "A is 6 or 8"
end select

Which is a lot cleaner if you have to check for a whole bunch of conditions... But for just two or so, the if (a=6 or (a=8) is probably the easiest.