Constructor
new IfBinding(anchor, createInstance, blocks, locals, onBlockMountedopt)
Parameters:
Members
activeArm :number
Type:
- number
range :BlockRange|null
Type:
- BlockRange | null
Methods
dispose()
Releases the rendered arm.
update(arms, evaluate)
Selects and renders the matching arm.
Parameters:
| Name | Type | Description |
|---|---|---|
arms |
Array:.<{x:: (number:|null:), b:: number:}> | The op's arms, in order. |
evaluate |
function | Evaluates an expression index. |