Skip to content

Operators

Keith Hammond edited this page Feb 22, 2020 · 4 revisions

Arithmetic operators

Syntax Operation
a + b Addition
a - b Subtraction
a * b Multiplication
a / b Division
a ^ b Exponentiation

Logical operators

Syntax Operation
!a Logical not
a || b Logical or
a && b Logical and
a < b Less than
a > b Greater than
a <= b Less or equal
a >= b Greater or equal
a == b Equal
a != b Not equal

Type operators

Syntax Operation
a | b Sum
a & b Product

Clone this wiki locally