doc: explain that order in map conditions matter

This commit is contained in:
Leonardo Gibrowski Faé 2022-04-24 11:27:32 -03:00
parent 82a3b2ae11
commit 3b5845370c

View file

@ -238,6 +238,25 @@ To match for empty strings, use ' "" ':
In addition to explicit tag values, you can also specify a
default/fallback particle.
Note that conditions are evaluated in the order they appear. *If
multiple conditions are true, the first one will be used*. This means
that in a configuration such as:
```
tx-bitrate > 1000:
tx-bitrate > 1000000:
```
the second condition would never run, since whenever the second
condition is true, the first is also true. The correct way of doing
this would be to invert the order of the conditions:
```
tx-bitrate > 1000000:
tx-bitrate > 1000:
```
## CONFIGURATION
[[ *Name*