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.
創(chuàng)建一個從0開始的計數(shù)器,可以遞增、遞減或設置為特定值。
計數(shù)器是 :
- 當 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.
接收到值時,計數(shù)器的值加1。
Decrease 遞減
A pulse that decreases the counter value by 1.
接收到值時,計數(shù)器的值減1。
Jump 跳轉
A pulse that resets the counter to the value specified by the Jump to Number port.
接收到值時,將計數(shù)器跳轉到 Jump to Number 設置的值。
Jump to Number 跳轉到的數(shù)字
The number to use as the counter value when the Jump port is pulsed.
設置 Jump 接口接收到值時要跳轉到的數(shù)字。
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.
值的最大計數(shù)器。當達到最大值時,計數(shù)器將復位為零。計數(shù)器將始終保持小于此值。
輸出口
Number 數(shù)字
The current value of the counter (ex: 0, 1, 2...)
計數(shù)器的當前值(例:0,1,2 ...)
Related Patches 相關模塊
Switch,Option Switch
Related Examples 案例
Instagram Adjust
Use drag to control the Instagram straighten tool.