Skip to content

Commit

Permalink
Document nqp::without
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 31, 2020
1 parent a021269 commit e305b1e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/ops.markdown
Expand Up @@ -168,6 +168,7 @@ For generating an abstract tree that includes opcodes, see [docs/qast.markdown](
* [if](#if)
* [unless](#unless)
* [with](#with)
* [without](#without)
- [Loop/Control Opcodes](#-loopcontrol-opcodes)
* [control](#control)
* [defor](#defor)
Expand Down Expand Up @@ -1686,6 +1687,14 @@ If the `$condition` evaluates to a defined value, run the `$then` block.
If not, and an `$else` block is present, run that instead, if it's absent,
return result of `$condition`.

## without
* `without(Block $condition, Block $then)`
* `without(Block $condition, Block $then, Block $else)`

If the `$condition` evaluates to an **undefined** value, run the `$then` block.
If not, and an `$else` block is present, run that instead, if it's absent,
return result of `$condition`.

# <a id="control"></a> Loop/Control Opcodes

## control
Expand Down

0 comments on commit e305b1e

Please sign in to comment.