how to make flags

BlitzPlus Forums/BlitzPlus Programming/how to make flags

rdodson41(Posted 2005) [#1]
[Edit] Never mind I figured it out.


Regular K(Posted 2005) [#2]
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


aab(Posted 2005) [#3]
i had another way of doing it. Id check if it was '>(n-1)' and then subtract n from it, putting all the flags in order Greatest to Lowest. This ways that tiiiniiee bit faster. Thanks