SETOUTPUTSLOT Function

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

Valid in: Only in a process job.
Category: Node
Returned data type: Boolean

Syntax

SETOUTPUTSLOT(slot)

Required Argument

slot

specifies an integer that indicates the active output slot when the expression node exits.

Details

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.
The function returns TRUE if it completed successfully. Otherwise, it returns FALSE.

Example

if tointeger(counter)<= 5 then setoutputslot(0)
                          else setoutputslot(1)