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

ParameterTypeDirectionDescription

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

ParameterValue

COUNTER

0

OUT

ParameterValue

COUNTER

1

Simple decrement

IN

ParameterValue

COUNTER

0

INCREMENT

-1

OUT

ParameterValue

COUNTER

-1

Simple reinitialization

IN

ParameterValue

COUNTER

8

RESET

Y

OUT

ParameterValue

COUNTER

0

HAS_RESET

Y

Reset to a specific value

IN

ParameterValue

COUNTER

8

DEFAULT_VALUE

5

RESET

Y

OUT

ParameterValue

COUNTER

5

HAS_RESET

Y

Reset when target value is reached

IN

ParameterValue

COUNTER

3

DEFAULT_VALUE

0

RESET_AT

4

OUT

ParameterValue

COUNTER

0

HAS_RESET

Y

Last updated