Pages: [1]   Go Down
Author Topic: Arduino Boolean OR  (Read 275 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quick question about the || operator

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


Logged

Offline Offline
Edison Member
*
Karma: 43
Posts: 1551
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's inclusive (standard).

Pete
Logged

Where are the Nick Gammons of yesteryear?

Offline Offline
Edison Member
*
Karma: 32
Posts: 1377
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for clearing that up fellas
Logged

Pages: [1]   Go Up
Jump to: