Chpush(name) Last updated: 04. Jan 2023

Adds an extra level to the counter.

Parameters

Name Type Description
name string Name of variable to change.

Returns

Nothing, just initializes the variable.

Example

Code example (#JS)

#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.
#{
    chinit("c1");
    chstep("c1");
    chpush("c1");
    chstep("c1");
}#
<b>Counter value is:</b> #c1#

Output

The #JS code above produces the output shown below:
<b>Counter value is:</b> 1.1