Counter State

Creates a variable that is incremented by one each time the state is called.

Input Variables

Variable Name – name of the session variable to increment. You must select the corresponding check box, or the state fails.

Output Variables


Follow-up State – OK

Not applicable.

Follow-up State – Fail

Fails if variable check box is not selected.

Follow-up State – Dynamic

Determined by the integer N, the updated counter.

State Editor

In this example, the Counter state increments the INDEX session variable.

Counter State Editor


The Counter state increments session variables only.


You can use the Counter state as an index in a loop; commonly used to allow customers a limited number of retry attempts.