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.

I think that's what it's called. I've seen where you can do something like this.

Const GLOW = 2
Const FOG = 4
Const SKY = 8
Const GROUND = 16

MakeWorld(GLOW+FOG+GROUND)

Then the function can somehow figure out what options you pick. Anyone know how to code this?