> For the complete documentation index, see [llms.txt](https://developers.retailys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.retailys.com/retailys-language.md).

# Retailys language

## Supported Literals[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#supported-literals)

* **strings** - single and double quotes (e.g. `'hello'`)
* **numbers** - e.g. `103`
* **arrays** - using JSON-like notation (e.g. `[1, 2]`)
* **hashes** - using JSON-like notation (e.g. `{ foo: 'bar' }`)
* **booleans** - `true` and `false`
* **null** - `null`
* **exponential** - also known as scientific (e.g. `1.99E+3` or `1e-2`)

## Supported Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#supported-operators)

### Arithmetic Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#arithmetic-operators)

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

### Bitwise Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#bitwise-operators)

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

### Comparison Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#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)

### Logical Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#logical-operators)

* `not` or `!`
* `and` or `&&`
* `or` or `||`

### String Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#string-operators)

* `~` (concatenation)

### Array Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#array-operators)

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

> Example:\
> condition for display for sales channels only 1, 4, 8

```
%channelId% in [1,4,8]
```

### Numeric Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#numeric-operators)

* `..` (range)

### Ternary Operators[¶](https://symfony.com/doc/current/components/expression_language/syntax.html#ternary-operators)

* `foo ? 'yes' : 'no'`
* `foo ?: 'no'` (equal to `foo ? foo : 'no'`)
* `foo ? 'yes'` (equal to `foo ? 'yes' : ''`)

### Built-in Objects and Variables

#### Objekt %user%

* **%user.id%** - the identifier of the logged in user
* **%user.language%** - the language code of the logged in user
