Go Down

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