Bit wise option code?

Blitz3D Forums/Blitz3D Programming/Bit wise option code?

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.

Const Glow = 2
Const Rings = 4
Const LensRef = 6

PrintOptions(Glow+Rings)

Function PrintOptions(Flag)

If Flag And Glow Then Print "Glow"
If Flag And Rings Then Print "Ring"
If Flag And LensRef Then Print "LensRef"

End Function

WaitKey()


I tried this, it didn't seem to work.