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è)置為特定值。
計數(shù)器是 :
- 當(dāng) Increase 遞增 接口接收到值時遞增1驶俊;
- 當(dāng) Decrement 遞減 接口接收到值時遞減1娶耍;
- 當(dāng) Jump to Number 跳轉(zhuǎn) 接口接收到值時,跳轉(zhuǎn)到接口設(shè)置的值饼酿。
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 跳轉(zhuǎn)
A pulse that resets the counter to the value specified by the Jump to Number port.
接收到值時紊婉,將計數(shù)器跳轉(zhuǎn)到 Jump to Number 設(shè)置的值。
Jump to Number 跳轉(zhuǎn)到的數(shù)字
The number to use as the counter value when the Jump port is pulsed.
設(shè)置 Jump 接口接收到值時要跳轉(zhuǎn)到的數(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ù)器喻犁。當(dāng)達到最大值時,計數(shù)器將復(fù)位為零何缓。計數(shù)器將始終保持小于此值肢础。
輸出口
Number 數(shù)字
The current value of the counter (ex: 0, 1, 2...)
計數(shù)器的當(dāng)前值(例:0,1碌廓,2 ...)
Related Patches 相關(guān)模塊
Switch传轰,Option Switch
Related Examples 案例
Instagram Adjust
Use drag to control the Instagram straighten tool.