mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 23:40:27 +00:00
truthy/falsey is more accurate than true/false
This commit is contained in:
parent
aeacc0b31b
commit
ee142c4be0
@ -590,10 +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`
|
* `:unless condition` -- only evaluates the current loop body when `condition`
|
||||||
is false.
|
is falsey.
|
||||||
|
|
||||||
The `loop` macro always evaluates to nil.
|
The `loop` macro always evaluates to nil.
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user