Switch

Switch

The Switch operation is a branching node which routes all processing down one of its exits.

The Switch operation has one or more exits.

Config Parameters

The Switch operation config attributes are as follows.

Parameter Type Description
exit_idx Integer The zero-based index number down which to route all calls.

Example Operation

Here is an example Switch operation in JSON representation.

    {
        "id": 5,
        "type": "Switch",
        "base_node": 4,
        "config": {
            "exit_idx": 1
        },
        "exits": [ 7, 6 ]
    }

In this example:

Exits

There are no special exits for this node.

Exit Index Name Description
0 Branch #1 [Required] All Switch operations must have at least one exit.
1 Branch #2 + Additional exits may be present