# Comparison Operators

# Equality (==)

Compares two values and checks if they are equal.
Lists are equal if they have the same length, and `a[i] == b[i]` for every index i.
Objects are equal if they have the same set of keys, and `a[k] == b[k]` for every key k.

``````param1 = "a"
param2 = "b"
``````
``````#param1 == #param2
``````
``````false
``````

``````param1 = "a"
param2 = "a"
``````
``````#param1 == #param2
``````
``````true
``````

``````param1 = 2
param2 = 3
``````
``````#param1 == #param2
``````
``````false
``````

``````param1 = 2
param2 = 2
``````
``````#param1 == #param2
``````
``````true
``````

``````param1 = [1, 2]
param2 = "c"
``````
``````[1, 2, "c"] == #param1 + [#param2]
``````
``````true
``````

# Inequality (!=)

The inverse of `==`, i.e. the same as `not (a == b)`.

``````param1 = "a"
param2 = "b"
``````
``````#param1 != #param2
``````
``````true
``````

``````param1 = "a"
param2 = "a"
``````
``````#param1 != #param2
``````
``````false
``````

``````param1 = 2
param2 = 3
``````
``````#param1 != #param2
``````
``````true
``````

``````param1 = 3
param2 = 3
``````
``````#param1 != #param2
``````
``````false
``````

# Less than operator (<)

``````param1 = 2
param2 = 3
``````
``````#param1 < #param2
``````
``````true
``````

# Greater than operator (>)

``````param1 = 2
param2 = 3
``````
``````#param1 > #param2
``````
``````false
``````

# Less than or equal operator (<=)

``````param1 = 2
param2 = 3
``````
``````#param1 <= #param2
``````
``````true
``````

``````param1 = 3
param2 = 3
``````
``````#param1 <= #param2
``````
``````true
``````

# Greater than or equal operator (>=)

``````param1 = 2
param2 = 3
``````
``````#param1 >= #param2
``````
``````false
``````

``````param1 = 3
param2 = 3
``````
``````#param1 >= #param2
``````
``````true
``````