Operator Precedence Summary

Operators are listed from highest to lowest precedence:

  1. Primary expressions (literals, identifiers, function calls, parentheses)
  2. Unary operators (not, -)
  3. Multiplicative (*, /, %)
  4. Additive (+, -)
  5. Relational (<, <=, >, >=, is)
  6. Equality (==, !=)
  7. Logical AND (and)
  8. Logical OR (or)
  9. Ternary conditional (?:)

Back to top

Copyright © Mesch Systems. All rights reserved.