Add if command
This commit is contained in:
8
HELP.md
8
HELP.md
@@ -381,6 +381,14 @@ str %> call $myFooReplacer bar
|
||||
```
|
||||
|
||||
|
||||
### Control Structures
|
||||
|
||||
#### `if <cond> <lambda>`
|
||||
Execute the given lambda if `cond` is truthy. Cond may be a lambda, in which case it is executed.
|
||||
A value is truthy UNLESS it is the literal empty string (`''`) or the integer `0`.
|
||||
Example: `foo` -> `if (contains foo) (suffix bar)` -> `foobar`
|
||||
|
||||
|
||||
### Misc
|
||||
|
||||
#### `lipsum <num> <word|line|para>`
|
||||
|
||||
Reference in New Issue
Block a user