COUNTER
Overview
The COUNTER workflow application allows you to easily manipulate a counter in a loop.
How it works
The application requires the COUNTER
parameter, which will be incremented or decremented depending on your choice.
Parameters
COUNTER
NUMERIC
IN
Counter to manipulate
DEFAULT_VALUE
NUMERIC
IN
Counter default value; defaults to 0
INCREMENT
NUMERIC
IN
The increment value; defaults to 1
. The value can be negative.
RESET
TEXT
IN
Indicates whether the counter should be reset to the default value
RESET_AT
NUMERIC
IN
Indicates whether the counter should be reset when the specified value is reached
HAS_RESET
TEXT
OUT
Returns Y
or N
to indicate whether the counter has been reset
Examples
Single increment
IN
COUNTER
0
OUT
COUNTER
1
Single decrement
IN
COUNTER
0
INCREMENT
-1
OUT
COUNTER
-1
Simple reinitialization
IN
COUNTER
8
RESET
Y
OUT
COUNTER
0
HAS_RESET
Y
Reset to a specific value
IN
COUNTER
8
DEFAULT_VALUE
5
RESET
Y
OUT
COUNTER
5
HAS_RESET
Y
Reset when target value is reached
IN
COUNTER
3
DEFAULT_VALUE
0
RESET_AT
4
OUT
COUNTER
0
HAS_RESET
Y
Last updated