Go Down

Topic: Arduino Boolean OR (Read 452 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?



el_supremo

It's inclusive (standard).

Pete

KeithRB

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!

Arduino
via Egeo 16
Torino, 10131
Italy