Block Trigger
These methods trigger the block to run.
Method | Description |
---|---|
execute(Map | Execute the block with the variables |
These methods trigger the block to run.
Method | Description |
---|---|
execute(Map | Execute the block with the variables |
These methods assign the variable values.
Method | Description |
---|---|
var(String) | Run the simplified assignment |
var(String, Object) | Assign the value to the variable with the name |
These methods do the if
control.
Method | Description |
---|---|
doIf(Object, Block) | If ... then ... |
doIf(Object, Block, Block) | If ... then ... else ... |
doIfNot(Object, Block, Block) | If not ... then ... else ... |
doIfNot(Object, Block) | If not ... then ... |
These methods do the for
control.
Method | Description |
---|---|
doFor(String, Object, Object, Object, Block) | for i = 0; i != 10; i = i + 1 loop |
doFor(String, Object, Block) | for ... in loop |
doFor(String, Block) | Simplified for loop statement |
These methods do the while
control.
Method | Description |
---|---|
doWhile(Object, Block) | while ..., do ... |
These methods do the switch
control.
Method | Description |
---|---|
doSwitch(Object, List | switch ... case ... |
These methods are useful in loop and switches.
Method | Description |
---|---|
doBreak() | Break |
doContinue() | Continue |
These methods are useful for debugging.
Method | Description |
---|---|
debug() | Print the variables in the current block |
Contribute on Github! Edit this section.