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 "Integer"

From Snapwiki
Jump to: navigation, search
(Created page with "== Integer == An Integer variable can be set to a whole number and used to control certain properties on other objects. {| class="wikitable" style="width: 60%;" !'''INPUTS''...")
 
Line 3: Line 3:
 
An Integer variable can be set to a whole number and used to control certain properties on other objects.
 
An Integer variable can be set to a whole number and used to control certain properties on other objects.
  
{| class="wikitable" style="width: 60%;"
+
== Details ==
!'''INPUTS'''
+
{| class="wikitable"
 +
|-
 +
|[[File:Integer.PNG]]||
 +
'''Object''': Integer
 +
 
 +
'''Category''': Variable
 +
 
 
|}
 
|}
  
;Set (Integer): Set the Integer to the value specified in the input's properties.
 
;Add (Integer): Increase the Integer by the amount specified in the input's properties.
 
;Subtract (Integer): Decrease the Integer by the amount specified in the input's properties.
 
;Multiply (Integer): Set the Integer to the product of its current value and the value specified in the input's properties.
 
;Divide (Integer): Set the Integer to the quotient from dividing the current value by the value specified in the input's properties.
 
;Modulo (Integer): Set the Integer to the remainder after dividing the current value by the value specified in the input's properties.
 
;Min (Integer): Set the Integer to the value specified in the input's properties if it is less than the current value.
 
;Max (Integer): Set the Integer to the value specified in the input's properties if it is greater than the current value.
 
;Random (Integer): Set the Integer to a random value between the allowed minimum and maximum.
 
  
{| class="wikitable" style="width: 60%;"
+
== Inputs ==
!'''OUTPUTS'''
+
{| class="wikitable" style="width:60%;"
 +
!colspan="3"|'''INPUTS'''
 +
|-
 +
|[[File:.png|64px|link=Input:Set]]||'''Set (Integer)'''||Set the Integer to the value specified in the input's properties.
 +
|-
 +
|[[File:.png|64px|link=Input:Add]]||'''Add (Integer)'''||Increase the Integer by the amount specified in the input's properties.
 +
|-
 +
|[[File:.png|64px|link=Input:Subtract]]||'''Subtract (Integer)'''||Decrease the Integer by the amount specified in the input's properties.
 +
|-
 +
|[[File:.png|64px|link=Input:Multiply]]||'''Multiply (Integer)'''||Set the Integer to the product of its current value and the value specified in the input's properties.
 +
|-
 +
|[[File:.png|64px|link=Input:Divide]]||'''Divide (Integer)'''||Set the Integer to the quotient from dividing the current value by the value specified in the input's properties.
 +
|-
 +
|[[File:.png|64px|link=Input:Modulo]]||'''Modulo (Integer)'''||Set the Integer to the remainder after dividing the current value by the value specified in the input's properties.
 +
|-
 +
|[[File:.png|64px|link=Input:Min]]||'''Min (Integer)'''||Set the Integer to the value specified in the input's properties if it is less than the current value.
 +
|-
 +
|[[File:.png|64px|link=Input:Max]]||'''Max (Integer)'''||Set the Integer to the value specified in the input's properties if it is greater than the current value.
 +
|-
 +
|[[File:.png|64px|link=Input:Random]]||'''Random (Integer)'''||Set the Integer to a random value between the allowed minimum and maximum.
 
|}
 
|}
  
;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.
+
 
 +
== Outputs ==
 +
{| class="wikitable" style="width:60%;"
 +
!colspan="3"|'''OUTPUTS'''
 +
|-
 +
|[[File:.png|64px|link=Output: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 ==
 +
{| class="wikitable" style="width: 60%;"
 +
!colspan="3"|'''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'''||Integer||The starting value for this variable.
 +
|-
 +
|'''Min Value'''||Integer||The minimum value.
 +
|-
 +
|'''Max Value'''||Integer||The maximum value.
 +
|}

Revision as of 2016-06-06T11:33:17

Integer

An Integer variable can be set to a whole number and used to control certain properties on other objects.

Details

Integer.PNG

Object: Integer

Category: Variable


Inputs

INPUTS
64px Set (Integer) Set the Integer to the value specified in the input's properties.
64px Add (Integer) Increase the Integer by the amount specified in the input's properties.
64px Subtract (Integer) Decrease the Integer by the amount specified in the input's properties.
64px Multiply (Integer) Set the Integer to the product of its current value and the value specified in the input's properties.
64px Divide (Integer) Set the Integer to the quotient from dividing the current value by the value specified in the input's properties.
64px Modulo (Integer) Set the Integer to the remainder after dividing the current value by the value specified in the input's properties.
64px Min (Integer) Set the Integer to the value specified in the input's properties if it is less than the current value.
64px Max (Integer) Set the Integer to the value specified in the input's properties if it is greater than the current value.
64px Random (Integer) Set the Integer to a random value between the allowed minimum and maximum.


Outputs

OUTPUTS
64px 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 Integer The starting value for this variable.
Min Value Integer The minimum value.
Max Value Integer The maximum value.