Chstep(name) Last updated: 30. May 2026

Increments (steps) the counter variable with the specified name by one.

Parameters

Name Type Description
name string

Name of variable to store chapter counter in.

Returns

Nothing, just increments the variable.

Example

Code example (#JS)

#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.
#chstep("counter1")#
#chstep("counter1")#

Counter 1 value is: #counter1#

Output

The #JS code above produces the output shown below:
 
Counter 1 value is: 2