# Operators

**Arithmetic Operators:**

* \+ (addition)
* \- (subtraction)
* \* (multiplication)
* / (division)
* % (modulus)
* \*\* (pow)

**Bitwise Operators**

* & (and)
* \| (or)
* ^ (xor)

**Comparison Operators**

* \== (equal)
* \=== (identical)
* != (not equal)
* !== (not identical)
* < (less than)
* \> (greater than)
* <= (less than or equal to)
* \>= (greater than or equal to)
* matches (regex match)
* contains
* starts with
* ends with

**Logical Operators**

* ! (not or)
* && (and or)
* || (or or)

**String Operators**

* \~ (concatenation)

**Array Operators**

* in (contain)
* not in (does not contain)

**Numeric Operators**

* .. (range)

**Ternary Operators**

* foo ? 'yes' : 'no'
* foo ?: 'no' (equal to foo ? foo : 'no')
* foo ? 'yes' (equal to foo ? 'yes' : '')<br>

***

To find out more, please refer to the articles below:

{% content-ref url="expression-examples" %}
[expression-examples](https://help.openloyalty.io/main-features/expressions/expression-examples)
{% endcontent-ref %}

{% content-ref url="sample-use-cases" %}
[sample-use-cases](https://help.openloyalty.io/main-features/expressions/sample-use-cases)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.openloyalty.io/main-features/expressions/operators.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
