Go Down

Topic: Arduino Boolean OR (Read 477 times) previous topic - next topic

Quick question about the || operator

is it exclusive (X-OR)? or is it standard, i.e. one or the other or both?


It's inclusive (standard).



It is also the *logical* OR, it works on the whole value. The | operator is the bitwise one.

thanks for clearing that up fellas

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131