Skip to content

Counter API

Block name
Block rendering

Increments a counter and optionally returns the current or the previous value of the counter.
counter-inc

Decrements a counter and optionally returns the current or the previous value of the counter.
counter-dec

Sets counter value if the counter contains an expected value. Optionally returns the current value of the counter.
counter-set-conditionally

Returns the current value of the counter.
counter-get-current

Resets the counter to zero.
counter-reset