Create a counter that starts at 0 and can be incremented, decremented or set to a specific value. The counter is:
- incremented by one when the Increase port receives a pulse;
- decremented by one when the Decrement port receives a pulse;
- set to the value specified by the Jump to Number port when the Jump port receives a pulse.
创建一个从0开始的计数器,可以递增、递减或设置为特定值。
计数器是 :
- 当 Increase 递增 接口接收到值时递增1;
- 当 Decrement 递减 接口接收到值时递减1;
- 当 Jump to Number 跳转 接口接收到值时,跳转到接口设置的值。
Constrain the counter by specifying a value in the Maximum Count port. If the counter is incremented after it reaches this maximum value, it will reset to zero. Decrementing the counter from its initial value will wrap it backwards to the maximum value. If the counter is constrained, the "Jump to Number" value must fall within bounds, otherwise the counter will return to the starting value.
Often used to track a sequential state (ex: an onboarding flow) interchangeably with Option Switch. See State Basics for more information.
输入口
Increase 递增
A pulse that increases the counter value by 1.
接收到值时,计数器的值加1。
Decrease 递减
A pulse that decreases the counter value by 1.
接收到值时,计数器的值减1。
Jump 跳转
A pulse that resets the counter to the value specified by the Jump to Number port.
接收到值时,将计数器跳转到 Jump to Number 设置的值。
Jump to Number 跳转到的数字
The number to use as the counter value when the Jump port is pulsed.
设置 Jump 接口接收到值时要跳转到的数字。
Maximum Count 最大计量
The maximum counter value. The counter will reset to zero when the maximum value is reached. Note that the counter will always remain less than this value.
值的最大计数器。当达到最大值时,计数器将复位为零。计数器将始终保持小于此值。
输出口
Number 数字
The current value of the counter (ex: 0, 1, 2...)
计数器的当前值(例:0,1,2 ...)
Related Patches 相关模块
Switch,Option Switch
Related Examples 案例
Instagram Adjust
Use drag to control the Instagram straighten tool.
网友评论