Skip to content

Commit

Permalink
Update the if / value expression description
Browse files Browse the repository at this point in the history
Clarify and demonstrate that the order of `if` and `value` is not important since both are keys of the same object.
  • Loading branch information
zstadler authored Oct 31, 2024
1 parent 6b3e152 commit 4f850e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions planetiler-custommap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f850e8

Please sign in to comment.