Main Menu

search

You are here

Arduino: Logic statements

[last updated: 2020-03-30]
go to: Arduino home page
go to: Arduino programming - main page
-----

  • Boolean Operators:
    ! (logical not)
    && (logical and)
    || (logical or)
  • Comparison Operators:
    != (not equal to)
    < (less than)
    <= (less than or equal to)
    == (equal to)
    > (greater than)
    >= (greater than or equal to)

  • Bitwise Operators:
    & (bitwise and)
    << (bitshift left)
    >> (bitshift right)
    ^ (bitwise xor)
    | (bitwise or)
    ~ (bitwise not)

  • Compound Operators:
    %= (compound remainder)
    &= (compound bitwise and)
    *= (compound multiplication)
    ++ (increment)
    += (compound addition)
    -- (decrement)
    -= (compound subtraction)
    /= (compound division)
    ^= (compound bitwise xor)
    |= (compound bitwise or)

.

.

.

eof