You need to set uo some consts for fast, tall etc. If flag is fast|tall, it won't equal fast and it wont equal tall. You can do something like this:
const fast=1
const tall=2
const big=4
flag=big|fast
If flag&fast
print("flag is fast");
endif
if flag&big
print("flag is big");
endif
This is untested. Your consts have to be powers of 2 - 1,2,4,8 etc.
const fast=1
const tall=2
const big=4
flag=big|fast
If flag&fast
print("flag is fast");
endif
if flag&big
print("flag is big");
endif
This is untested. Your consts have to be powers of 2 - 1,2,4,8 etc.