Update the `if` / `value` expression description (#1081)

Clarify and demonstrate that the order of `if` and `value` is not important since both are keys of the same object.
pull/1086/head
zstadler 2024-11-02 11:19:29 +01:00 zatwierdzone przez GitHub
rodzic 6b3e15269b
commit e51509d939
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -414,13 +414,13 @@ value:
water: otherwise
```
If the values are not simple strings, then you can use an array of objects with `if` / `value` / `else` conditions:
If the values are not simple strings, then you can use an array of objects with `if` and `value` keys and a last object with an `else` key:
```yaml
value:
- value: 100000
if:
- if:
place: city
value: 100000
- value: 5000
if:
place: town