Loop Counter Branching

Loop Counter Branching

The LoopCounterBranching operation will inspect the stored value of a specified loop counter and select the appropriate exit according to whether the loop limit has been reached.

The LoopCounterBranching operation has exactly two exits.

Config Parameters

The LoopCounterBranching operation config attributes are as follows.

Parameter Type Description
buffer User Counter [Required] This must be the identifier for a User Counter configured in the platform configuration (e.g. Loop Counter 1).
limit Integer [Required] This is the loop limit value. It must be an integer greater than or equal to zero.

Example Operation

Here is an example LoopCounterBranching operation in JSON representation.

    {
        "id": 5,
        "type": "LoopCounterBranching",
        "config": {
            "buffer": "Loop Counter 1",
            "limit": 3
        },
        "exits": [ 4, 17 ]
    }

In this example, if the value of the user counter Loop Counter 1 is greater than or equal to three, processing will continue via exit index 1 to the operation with ID 17. Otherwise processing will continue via exit index 0 to the operation with ID 4.

Exits

There are exactly two exits for every LoopCounterBranching.

Exit Index Name Description
0 < Threshold [Required] This exit is followed if the counter value has not yet reached the configured limit.
1 >= Threshold [Required] This exit is followed if the counter value has reached or exceeded the configured limit.