Hello:
This should be easy but I cannot seem to get it working. I want to check if either flag is set to 1 but I consistently hit the else clause even though at least one flag is always 1. Any ideas will be appreciated.
Thanks,Steve
if ( isflagset(13) | isflagset(17) ) { ... } else { ... };
Hi Steve!
Try || instead of |
regards, klaus
Steve Blair wrote:
Hello:
This should be easy but I cannot seem to get it working. I want to check if either flag is set to 1 but I consistently hit the else clause even though at least one flag is always 1. Any ideas will be appreciated.
Thanks,Steve
if ( isflagset(13) | isflagset(17) ) { ... } else { ... };