Add unless command
This commit is contained in:
5
HELP.md
5
HELP.md
@@ -388,6 +388,11 @@ Execute the given lambda if `cond` is truthy. Cond may be a lambda, in which cas
|
||||
A value is truthy UNLESS it is the literal empty string (`''`) or the integer `0`.
|
||||
Example: `foo` -> `if (contains foo) (suffix bar)` -> `foobar`
|
||||
|
||||
#### `unless <cond> <lambda>`
|
||||
Inversion of `if`.
|
||||
Example: `foo` -> `unless (contains foo) (suffix bar)` -> `foo`
|
||||
|
||||
|
||||
|
||||
### Misc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user