SETOUTPUTSLOT Function

Sets the output slot to slot. This becomes the output slot when the expression exits.

Category: Execution
Returned data type: Integer

Syntax

SETOUTPUTSLOT(integer)

Required Arguments

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.

Details

Note: The SETOUTPUTSLOT function is 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. It SETOUTPUTSLOT is not called, it exits on 0 by default.

Example

The following statements illustrate the SETOUTPUTSLOT function.
if tointeger(counter)<= 5 then SETOUTPUTSLOT(0)
else SETOUTPUTSLOT(1)