You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

inc_counter()

Usage

inc_counter(level, resetLowerLevels)
inc_counter(level)

Description
Increases the counter value for the given level, optionally resetting the value of all counters below the given level with the second parameters, which accepts a boolean value. See Counters for an explanation of counters in Structr.

Note: The level has to be numeric.

Example

${inc_counter(1, true)}

results in

<no output>

Search results for "inc_counter()"

inc_counter()

Increases the counter value for the given level, optionally resetting the value of all counters below the given level with the second parameters, which accepts a boolean value.

inc_counter(level, resetLowerLevels)
inc_counter(level)