Sets the output slot to slot. This becomes the output slot when the expression exits.
Category: | Execution |
Returned data type: | Integer |
SETOUTPUTSLOT(integer)
integer
the slot number for the node that should execute next
returns
Boolean [true = success; false = error]
slot
an integer representing the active output slot when the expression node exits
Note: The setoutputslot function is only applicable in a process job.
The setoutputslot function tells the node (the expression node in which it is running) to exit on the specified slot. In a process job, if you follow a node by two other nodes, you specify a slot for each. For example 0 and 1. If you run setoutputslot(1) it tells the process job to continue with the node that is linked at slot 1. If setoutputslot is not called, it exits on 0 by default.
if tointeger(counter)<= 5 then setoutputslot(0)
else setoutputslot(1)