1
0
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:
Calvin Rose 2023-09-22 05:41:06 -07:00 committed by GitHub
commit c31314be38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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