Hi Michael, not sure why your reply is not showing on the forum but the code you provided does not seem to work. This expression just toggles 0-1 depending if the number is even or odd. what I am looking for is to find the status of a bit in a number such as 512, the 10th bit is "high" and I want to react based off that state, thank you.

**Is there any documentation on how to write expressions?** Thank you

"Hi,

Michael has replied to the topic: Find bit status of a number

## [Value] % 2^x == 0 where x is the bit number."

Hi Michael, not sure why your reply is not showing on the forum but the code you provided does not seem to work. This expression just toggles 0-1 depending if the number is even or odd. what I am looking for is to find the status of a bit in a number such as 512, the 10th bit is "high" and I want to react based off that state, thank you.
**Is there any documentation on how to write expressions?** Thank you
"Hi,
Michael has replied to the topic: Find bit status of a number
----
[Value] % 2^x == 0 where x is the bit number."
----