Find if flag is in number?

Miscellaneous Forums/General Discussion/Find if flag is in number?

Well, a simple way that will work is to store them as strings: textureflags1="1*2*4*8*16*32" - baring in mind you won't be storing all of them so the asterisk is just a separator.
Er.... no...

X = 1+2+16+32
If X And 32
  ;do stuff for flag 32
EndIf
If X And 16
  ;do stuff for flag 16
EndIf