summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2015-10-17 21:15:24 -0700
committerDavid Tolnay <dtolnay@gmail.com>2015-10-17 21:15:24 -0700
commit6c31850e86bfe482bdaff8bc858864be2c7f4c75 (patch)
treec0937b483c4dda16a54b57dcdf148a95b871cd14 /docs
parentc8dc164566bde82282b3192b677ca25997bafa0c (diff)
If-then-else documentation for forking conditional (fix #942)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml6
-rw-r--r--docs/content/3.manual/v1.3/manual.yml6
-rw-r--r--docs/content/3.manual/v1.4/manual.yml6
-rw-r--r--docs/content/3.manual/v1.5/manual.yml6
4 files changed, 12 insertions, 12 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index d9dd3b18..f7fd9381 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -1863,9 +1863,9 @@ sections:
need something more like `if (.name | length) > 0 then A else
B end` instead.
- If the condition A produces multiple results, it is
- considered "true" if any of those results is not false or
- null. If it produces zero results, it's considered false.
+ If the condition `A` produces multiple results, then `B` is evaluated
+ once for each result that is not false or null, and `C` is evaluated
+ once for each false or null.
More cases can be added to an if using `elif A then B` syntax.
diff --git a/docs/content/3.manual/v1.3/manual.yml b/docs/content/3.manual/v1.3/manual.yml
index aaedf377..08603207 100644
--- a/docs/content/3.manual/v1.3/manual.yml
+++ b/docs/content/3.manual/v1.3/manual.yml
@@ -913,9 +913,9 @@ sections:
need something more like `if (.name | count) > 0 then A else
B end` instead.
- If the condition A produces multiple results, it is
- considered "true" if any of those results is not false or
- null. If it produces zero results, it's considered false.
+ If the condition `A` produces multiple results, then `B` is evaluated
+ once for each result that is not false or null, and `C` is evaluated
+ once for each false or null.
More cases can be added to an if using `elif A then B` syntax.
diff --git a/docs/content/3.manual/v1.4/manual.yml b/docs/content/3.manual/v1.4/manual.yml
index 841764ac..41745888 100644
--- a/docs/content/3.manual/v1.4/manual.yml
+++ b/docs/content/3.manual/v1.4/manual.yml
@@ -1315,9 +1315,9 @@ sections:
need something more like `if (.name | length) > 0 then A else
B end` instead.
- If the condition A produces multiple results, it is
- considered "true" if any of those results is not false or
- null. If it produces zero results, it's considered false.
+ If the condition `A` produces multiple results, then `B` is evaluated
+ once for each result that is not false or null, and `C` is evaluated
+ once for each false or null.
More cases can be added to an if using `elif A then B` syntax.
diff --git a/docs/content/3.manual/v1.5/manual.yml b/docs/content/3.manual/v1.5/manual.yml
index f676e52d..1b37e799 100644
--- a/docs/content/3.manual/v1.5/manual.yml
+++ b/docs/content/3.manual/v1.5/manual.yml
@@ -1794,9 +1794,9 @@ sections:
need something more like `if (.name | length) > 0 then A else
B end` instead.
- If the condition A produces multiple results, it is
- considered "true" if any of those results is not false or
- null. If it produces zero results, it's considered false.
+ If the condition `A` produces multiple results, then `B` is evaluated
+ once for each result that is not false or null, and `C` is evaluated
+ once for each false or null.
More cases can be added to an if using `elif A then B` syntax.