0.3.1 • Published 8 years ago
@telligro/opal-node-control-flow v0.3.1
opal-node-control-flow
This module is part of the OPAL framework
Nodes:
- opal loops
Loops
- Provides
for-loop,foreach-loop,while-loopfunctionality. THe loop node provides 2 output ports. The next itemoutputand thedoneoutput port. Connect the nodes that are to be in the loop body to thenextoutput port. At the end of the loop connect the last action to the input port of the loop node. Connect thedoneoutput port to the nodes that are to be executed after the loops ends.
Inputs:
- Name: A Name for this instance
- Type: choose from
for-loop,foreach-loopandwhile-loop - for-loop: Takes start, end and step as parameters
- start: A number that represents the starting value for the loop
- end: A number that represents the ending value of the loop. This must be greater than the start value
- step: A number y which the loop counter is incremented for each iteration
- foreach-loop: Takes a collection to be iterated as input.
- collection: The collection to be iterated. Expects a JSON array or variable containing a json array.
- while-loop: Takes start, end and step as parameters
- property: The value to be used in the comparison for while condition
- rules: A collection of rules that can be applied to the property. The rules when applied to the property forms the condition for the loop
Outputs:
msg.error When an error happens contains the error message from the read operation
msg.payload contains the data read from spreadsheet