From e51509d939e5a386782dc15ca9affa328f7f73e5 Mon Sep 17 00:00:00 2001 From: zstadler Date: Sat, 2 Nov 2024 11:19:29 +0100 Subject: [PATCH] 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. --- 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 b10c74ed..a4d3307c 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