I need to check if a certain flag is set for an integer.
I already know how to set a flag:
flags := FLAG_A or FLAG_B or FLAG_C
But
You use the and operator as you would & in C++. On numeric arguments, it's bitwise. Here are some examples of bitwise operations.
and
&