Community ProtoFlux Library/AmasterAmaster/Action/Increment And Decrement: Difference between revisions
No edit summary |
Small corrections. Fixed links. |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name= | |Name=++/-- <int> | ||
|Category:Amaster's Action Library | |Category:Amaster's Action Library | ||
|Inputs= | |Inputs= | ||
Line 15: | Line 15: | ||
{"Name":"OnFail", "Type":"Continuation"}, | {"Name":"OnFail", "Type":"Continuation"}, | ||
{"Name":"Value", "Type":"int"}, | {"Name":"Value", "Type":"int"}, | ||
{"Name":"FieldOfValue", "Type":" | {"Name":"FieldOfValue", "Type":"IField`1"} | ||
] | ] | ||
|Custom=true | |Custom=true | ||
|}} | |}} | ||
'''Increment And Decrement''' | The '''Increment And Decrement''' node allows the [[Type:User|user]] to add or subtract an [[Type:int|int]] value. This is useful for manipulating an int value on an object to change its function depending on how the users use the int value of that object. | ||
== Input == | == Input == | ||
Line 45: | Line 45: | ||
Sends an impulse after Increment ([[Impulses|Call]]) or Decrement ([[Impulses|Call]]) has been impulsed and the value wasn't able to be written due to a missing target. | Sends an impulse after Increment ([[Impulses|Call]]) or Decrement ([[Impulses|Call]]) has been impulsed and the value wasn't able to be written due to a missing target. | ||
=== Value ([[ | === Value ([[Type:int|int]]) === | ||
The int value that changes on the number of increment or decrement is called. | The int value that changes on the number of increment or decrement is called. | ||
=== FieldOfValue ([[IField|IField]]) === | === FieldOfValue ([[Type:IField`1|IField]]) === | ||
Allows to write directly into a string field using another node. | Allows to write directly into a string field using another node. |
Latest revision as of 15:09, 23 August 2024
The Increment And Decrement node allows the user to add or subtract an int value. This is useful for manipulating an int value on an object to change its function depending on how the users use the int value of that object.
Input
Increment (Call)
Call to increase the int value by 1.
Decrement (Call)
Call to decrease the int value by 1.
Output
OnIncrement (Continuation)
Sends an impulse after Increment (Call) has been impulsed and the value has been written.
OnDecrement (Continuation)
Sends an impulse after Decrement (Call) has been impulsed and the value has been written.
OnFail (Continuation)
Sends an impulse after Increment (Call) or Decrement (Call) has been impulsed and the value wasn't able to be written due to a missing target.
Value (int)
The int value that changes on the number of increment or decrement is called.
FieldOfValue (IField)
Allows to write directly into a string field using another node.