- List of operators
### List of operators

# List of operators

The operators available in the formulas question type are similar to those in JavaScript and PHP. They are listed below:

## Arithmetic operators

**Operator****Definition**+ Addition - Subtraction * Multiplication / Division % Modulo (remainder) ** Exponentiation #### Reference:

## Assignment operator

**Operator****Definition**= Assigns a value to a variable ## Bitwise operators

**Operator****Definition**& AND | OR ~ NOT ^ XOR

(Note that ^ means "power" in algebraic formulas)<< Left shift >> Right shift ## Comparison operators

**Operator****Definition**== Equal to != Not equal > Greater than < Less than >= Greater than or equal to <= Less than or equal to ## Logical operators

**Operator****Definition**&& And | | Or ! Not ## Conditional (ternary) operator

**Operator****Definition**? : Conditional operator

Reference: MDN web docs## References