# Comparison Operators

Airscript supports comparison operators that check equality, inequality, and ordering.

Unlike Airscript functions, Airscript operators not placed before the variables they are operating on, but rather between them, analogous to how operators are written in simple arithmetic equations. For instance, the following example uses the equality operator (=) to check if 2 is equal to 2:

```json
2 = 2 -> TRUE
```

All comparison operators return a [Boolean](../variable-data-types/the-boolean-variable-data-type) as output. They are commonly used in tandem with Airscript functions such as [IF](conditional-functions/if), which requires Boolean input.

All comparison operators are capable of comparing two [Numbers](../variable-data-types/the-number-variable-data-type), [Times](../variable-data-types/the-time-variable-data-type), [Dates](../variable-data-types/the-date-variable-data-type), [DateTimes](../variable-data-types/the-datetime-variable-data-type), [Currencies](../variable-data-types/the-currency-variable-data-type), and [strings](../variable-data-types/the-text-variable-data-type). See documentation on individual operators for details.
