Due to the recent resurgence of spam, we have temporarily disabled user creation and page editing/creation as we resolve the issue.
Difference between revisions of "Number"
From Snapwiki
m |
m (Fixing Flow category) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Flow]] | ||
== Number == | == Number == | ||
− | |||
A Number variable can be set to a number with decimal places and used to control certain properties on other objects. | A Number variable can be set to a number with decimal places and used to control certain properties on other objects. | ||
Line 12: | Line 12: | ||
|} | |} | ||
− | |||
== Inputs == | == Inputs == | ||
Line 18: | Line 17: | ||
!colspan="3"|'''INPUTS''' | !colspan="3"|'''INPUTS''' | ||
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Set.png|64px|link=Set]]||'''Set (Number)'''||Set the Number to the value specified in the input's properties. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Add.png|64px|link=Add]]||'''Add (Number)'''||Increase the Number by the amount specified in the input's properties. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Subtract.png|64px|link=Subtract]]||'''Subtract (Number)'''||Decrease the Number by the amount specified in the input's properties. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Multiply.png|64px|link=Multiply]]||'''Multiply (Number)'''||Set the Number to the product of its current value and the value specified in the input's properties. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Divide.png|64px|link=Divide]]||'''Divide (Number)'''||Set the Number to the quotient from dividing the current value by the value specified in the input's properties. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Modulo.png|64px|link=Modulo]]||'''Modulo (Number)'''||Set the Number to the remainder after dividing the current value by the value specified in the input's properties. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Min.png|64px|link=Min]]||'''Min (Number)'''||Set the Number to the value specified in the input's properties if it is less than the current value. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Max.png|64px|link=Max]]||'''Max (Number)'''||Set the Number to the value specified in the input's properties if it is greater than the current value. |
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:Random.png|64px|link=Random]]||'''Random (Number)'''||Set the Number to a random value between the allowed minimum and maximum. |
|} | |} | ||
− | |||
== Outputs == | == Outputs == | ||
Line 42: | Line 40: | ||
!colspan="3"|'''OUTPUTS''' | !colspan="3"|'''OUTPUTS''' | ||
|- | |- | ||
− | |[[File:.png|64px|link= | + | |[[File:OnChanged.png|64px|link=On Changed]]||'''On Changed'''||When the value changes, send a signal. The activator is the Resource or Cached Entity that changed. There is no activator for Boolean, Color, Integer, Number or String variables. |
|} | |} | ||
− | |||
== Properties == | == Properties == |
Latest revision as of 2016-06-16T13:42:16
Contents
Number
A Number variable can be set to a number with decimal places and used to control certain properties on other objects.
Details
Object: Number Category: Variable |
Inputs
Outputs
OUTPUTS | ||
---|---|---|
![]() |
On Changed | When the value changes, send a signal. The activator is the Resource or Cached Entity that changed. There is no activator for Boolean, Color, Integer, Number or String variables. |
Properties
PROPERTIES | ||
---|---|---|
Property | Type | Description |
Name | String | The name of this object. Rename an object to make it easy to identify. |
Icon | Grid Picker | Icon of this object. Change the icon to make it easy to identify. |
Initial Value | Number | The starting value for this variable. |
Min Value | Integer | The minimum value. |
Max Value | Integer | The maximum value. |