...
Similar to counter, but here the counter is only increased if boolean is true. Else the counter-function will return the current value.
Remark:
- If you want to start with a specific count, simply use the mep function
(value+counter())
- If you want to increase e.g. by 2, use a mep function too: (
2*counter()
)