counterChan
Create a counter object, using a channel to save state.
Syntax
Usage
counterChan yields and increments a value stored in a channel upon evaluation.
Outputs and arguments
ival -- The output value.
Schan -- Channel name to store the current value.
iincrement (optional, default=1) -- Amount to increment the channel.
imodulo (optional, default=0 - no modulo) -- An upper bound for the output. Values are wrapped between this and ilower.
ilower (optional, default=0) -- A lower bound for the output. Values are wrapped around this value.
Example
See the example for loopevent.orc