Click or drag to resize
GetIncrementedCounter

[This is preliminary documentation and is subject to change.]

The TOPICA Basic function GetIncrementedCounter returns an integer value, incremented by one for each call of the function.

Syntax
GetIncrementedCounter(counterName)

Result type: Integer.

Parameters

Name

Type

Description

counterName

String

Name of the counter on which the incremented value should be based.

Returns

Previous value of counter with given counterName incremented by one

Type: Integer.

Examples
GetIncrementedCounter("TestCounter1") - first call on TestCoutner1

Result: 1

GetIncrementedCounter("TestCounter1") - second call on TestCoutner1

Result: 2

GetIncrementedCounter("TestCounter2") - first call on TestCoutner2

Result: 1