how to make flags

BlitzPlus Forums/BlitzPlus Programming/how to make flags

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.

1=apple
2=orange
4=pear

test=1+4 ;5

If test and 1 then Notify("APPLE!")
If test and 2 then Notify("ORANGE!")
If test and 4 then Notify("PEAR!")

Basic example