Skip to content
Myr

Fix incorrect if empty string example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mattias Wadman · committed by William Langford · parent e615bdc · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/content/manual/manual.yml+1 added-1 removed
2111 unmodified lines
2112 "truthiness" than is found in Javascript or Python, but it2113 means that you'll sometimes have to be more explicit about2114 the condition you want. You can't test whether, e.g. a2115 string is empty using `if .name then A else B end`, you'll2116 need something more like `if .name then A else B end` instead.2116 need something more like `if .name == "" then A else B end` instead.21172118 If the condition `A` produces multiple results, then `B` is evaluated2119 once for each result that is not false or null, and `C` is evaluated2120 once for each false or null.
1244 unmodified lines