1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-01 10:28:04 +00:00

Merge pull request #1296 from Andriamanitra/doc-loop-unless

add :unless modifier to (doc loop)
This commit is contained in:
Calvin Rose
2023-09-22 05:41:06 -07:00
committed by GitHub

View File

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