Fix incorrect if empty string example
This commit is contained in:
1 parent
e615bdc407
commit
cc4efc49e1
1 file changed
+1
-1
@@ -2113,7 +2113,7 @@ sections:
|
|||||||
means that you'll sometimes have to be more explicit about
|
means that you'll sometimes have to be more explicit about
|
||||||
the condition you want. You can't test whether, e.g. a
|
the condition you want. You can't test whether, e.g. a
|
||||||
string is empty using `if .name then A else B end`, you'll
|
string is empty using `if .name then A else B end`, you'll
|
||||||
need something more like `if .name then A else B end` instead.
|
need something more like `if .name == "" then A else B end` instead.
|
||||||
|
|
||||||
If the condition `A` produces multiple results, then `B` is evaluated
|
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 result that is not false or null, and `C` is evaluated
|
||||||
|
|||||||
Reference in new issue
Block a user