From 4f850e845de227ff893522318c62853dff74f7b9 Mon Sep 17 00:00:00 2001 From: zstadler Date: Thu, 31 Oct 2024 23:51:30 +0200 Subject: [PATCH] Update the `if` / `value` expression description Clarify and demonstrate that the order of `if` and `value` is not important since both are keys of the same object. --- planetiler-custommap/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/planetiler-custommap/README.md b/planetiler-custommap/README.md index b10c74ed75..a4d3307cb6 100644 --- a/planetiler-custommap/README.md +++ b/planetiler-custommap/README.md @@ -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