Fix incorrect if empty string example

This commit is contained in:
Mattias Wadman authored and William Langford committed 2021-05-01 14:33:01 -04:00
1 parent e615bdc407
commit cc4efc49e1
1 file changed
+1 -1
+1 -1
View File
@@ -2113,7 +2113,7 @@ sections:
means that you'll sometimes have to be more explicit about
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
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
once for each result that is not false or null, and `C` is evaluated