mirror of
https://github.com/janet-lang/janet
synced 2025-02-02 10:19:10 +00:00
Merge pull request #1296 from Andriamanitra/doc-loop-unless
add :unless modifier to (doc loop)
This commit is contained in:
commit
c31314be38
@ -590,7 +590,10 @@
|
|||||||
* `:repeat n` -- repeats the next inner loop `n` times.
|
* `:repeat n` -- repeats the next inner loop `n` times.
|
||||||
|
|
||||||
* `:when condition` -- only evaluates the current loop body when `condition`
|
* `:when condition` -- only evaluates the current loop body when `condition`
|
||||||
is true.
|
is truthy.
|
||||||
|
|
||||||
|
* `:unless condition` -- only evaluates the current loop body when `condition`
|
||||||
|
is falsey.
|
||||||
|
|
||||||
The `loop` macro always evaluates to nil.
|
The `loop` macro always evaluates to nil.
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user