how to make flags
BlitzPlus Forums/BlitzPlus Programming/how to make flags| 
 | ||
| [Edit] Never mind I figured it out. | 
| 
 | ||
| 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 | 
| 
 | ||
| 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 |