summaryrefslogtreecommitdiff
path: root/doc/concepts
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-23 12:35:39 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-24 12:30:09 +0200
commiteb085c33aba12a332c3ee8e73d26a241a6996c41 (patch)
treef0bf5cffd3fd04c64d26c5c4d821deb0bde59114 /doc/concepts
parent14b93071eca21c69b635bd77eb68057b2906ddab (diff)
downloadjustbuild-eb085c33aba12a332c3ee8e73d26a241a6996c41.tar.gz
expressions: for "if" expressions, make both branches optional
... using, also for the "then" branch, the empty list as default. In this way, this statement not only more symmetric, but also allows shorter representations of some typical expressions.
Diffstat (limited to 'doc/concepts')
-rw-r--r--doc/concepts/expressions.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/concepts/expressions.md b/doc/concepts/expressions.md
index a14cd60f..b3dbd82f 100644
--- a/doc/concepts/expressions.md
+++ b/doc/concepts/expressions.md
@@ -107,12 +107,12 @@ expression power. It is equivalent but lot shorter to multiple
###### Binary conditional: `"if"`
-First the key `"cond"` is evaluated. If it evaluates to a
-value that is logically true, then the key `"then"` is
-evaluated and its value is the result of the evaluation.
-Otherwise, the key `"else"` (if present, otherwise `[]` is
-taken as default) is evaluated and the obtained value is the
-result of the evaluation.
+First the key `"cond"` is evaluated. If it evaluates to a value that
+is logically true, then the key `"then"` (if present, otherwise `[]`
+is taken as default) is evaluated and its value is the result of
+the evaluation. Otherwise, the key `"else"` (if present, otherwise
+`[]` is taken as default) is evaluated and the obtained value is
+the result of the evaluation.
###### Sequential conditional: `"cond"`