kopia lustrzana https://github.com/onthegomap/planetiler
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
rodzic
6b3e15269b
commit
e51509d939
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue