This node performs addition or subtraction operations, to/from an accumulated `count` value, when the boolean status changes of `count up` and `count down` respectively.
- [set value] - Numeric value to start the count from. Value of `count` output is set to this when `reset` input is triggered.
- count up - Boolean input that increase the `count` value by `1` when input transitions from `false` to `true`.
- count down - Boolean input that decreases the `count` value by `1` when input transitions from `false` to `true`.
- reset - Boolean input that changes the `count` value to `[set value]` when input transitions from `false` to `true`.
Outputs
- count - Numeric value of the current count.
Settings
- Name - Name of the node.
- Set Value - Numeric setting value that `count` is set to when boolean `reset` input transitions from `false` to `true`. Set from settings as a fallback from wired input value.
Operation
‘count' increases by `1` every time 'countUp' transitions from 'false' to 'true. 'count' decreases by `1` every time 'countDown' transitions from 'false' to 'true. 'count' will be set to 'set value' when 'reset' transitions from 'false' to 'true`.