Add unless command

This commit is contained in:
2026-04-21 01:09:39 -05:00
parent 82510fea2f
commit 1d20aa59d1
3 changed files with 63 additions and 0 deletions

View File

@@ -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