mirror of
https://github.com/janet-lang/janet
synced 2025-01-22 21:26:51 +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.
|
||||
|
||||
* `: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.
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user