Hi,
du kannst bei einer Variable den Zustand jedes Bits abfragen.
If Variable.5=1 then 'Ist Bit 5 gesetzt ?
tu was
endif

Gruß
Christopher