If-then-else documentation for forking conditional (fix #942)

This commit is contained in:
David Tolnay committed 2015-10-17 21:15:24 -07:00
1 parent c8dc164566
commit 6c31850e86
5 files changed
+26 -13

No files matched your search

+3 -3
View File
@@ -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.
+3 -3
View File
@@ -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.
+3 -3
View File
@@ -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.
+3 -3
View File
@@ -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.