COUNTDOWN Function v20.08


Function Type

Predefined function

Syntax

COUNTDOWN( <counterName>, <initialCount> )

Description

Returns a value that is one less than the previous iteration. The first time this function is called, it sets a counter equal to the initial counter value initialCount> and returns that value. The next time it returns initialCount>-1. It will never return a value less than zero.

Argument

Description

<counterName>

Unique string representing the name of the counter.

<initialCount>

Integer value to set the initial counter.

Returns

Integer

Example

This example initializes the string counter, "fieldcounter", to ten. Upon execution, the first field will have the value 10, the second 9, the third 8, etc. The final result will be 0.

While(COUNTDOWN("fieldcounter", 10) > 0)


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*