Check status of bit in VAR
J^3
Posts: 121
Good evening all,
I am looking for help on how to check the status of a bit in a VAR. Is there something similar to PBASIC such as myVar.BIT0?
Thanks in advance
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 types of people that understand binary, those who do, and those who don't.
I am looking for help on how to check the status of a bit in a VAR. Is there something similar to PBASIC such as myVar.BIT0?
Thanks in advance
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 types of people that understand binary, those who do, and those who don't.
Comments
ifnot myVar & |< bitNumber ' This succeeds if the bit is false (0)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 types of people that understand binary, those who do, and those who don't.