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

Parameter
Type
Direction
Description

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

Parameter
Value

COUNTER

0

OUT

Parameter
Value

COUNTER

1

Single decrement

IN

Parameter
Value

COUNTER

0

INCREMENT

-1

OUT

Parameter
Value

COUNTER

-1

Simple reinitialization

IN

Parameter
Value

COUNTER

8

RESET

Y

OUT

Parameter
Value

COUNTER

0

HAS_RESET

Y

Reset to a specific value

IN

Parameter
Value

COUNTER

8

DEFAULT_VALUE

5

RESET

Y

OUT

Parameter
Value

COUNTER

5

HAS_RESET

Y

Reset when target value is reached

IN

Parameter
Value

COUNTER

3

DEFAULT_VALUE

0

RESET_AT

4

OUT

Parameter
Value

COUNTER

0

HAS_RESET

Y

Last updated