Operators are mostly for mathematical calculations or comparing two values. The + operator can also be used to concatenate strings!
+
Adds two values together.
add
Learn more about + →
Subtracts two numbers.
subtract
Learn more about - →
Multiplies two numbers.
multiply
Learn more about * →
Returns the remainder of the first number divided by the second.
mod
Learn more about % →
Returns the result of a base number raised to an exponent power.
pow
Learn more about ^ →
Divides two numbers.
divide
Learn more about / →
Checks if two values are equal.
equal
Learn more about == →
Checks if two values are not equal.
unequal
Learn more about != →
Checks if the first value is greater than the second.
Learn more about > →
Checks if the first value is greater than or equal to the second.
Learn more about >= →
Checks if the first value is less than the second.
Learn more about < →
Checks if the first value is less than or equal to the second.
Learn more about <= →
The boolean operator and.
and
Learn more about && · and →
The boolean operator or.
or
Learn more about || · or →
Returns the opposite of a boolean value.
not
Learn more about ! · not →
The ternary operator.
if
Learn more about ? : →