Instructions/Subtract: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational)
 
Line 3: Line 3:
==== Description ====
==== Description ====


Subtracts the second input from the first. Can be used on coordinates and numbers simultaneously.


==== Uses ====
==== Uses ====
Used for basic subtraction of coordinates or numbers.


 
The second input is subtracted from the first input and the value on the first input is preserved, whether that be null or anything else.


==== Similar Instructions ====
==== Similar Instructions ====
[[Instructions/Set Number|Set Number]], [[Instructions/Add|Add]], [[Instructions/Multiply|Multiply]]




{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 19:25, 13 September 2023


Subtract
     
     Subtracts a number or coordinate from another number or coordinate
Lua ID sub
Category Math
Icon Substact Numbers.png
Argument One: Type Input
Argument One: Name From
Argument One: Data Type coord_num
Argument Two: Type Input
Argument Two: Name Num
Argument Two: Data Type coord_num
Argument Three: Type Output
Argument Three: Name Result



Description[edit | edit source]

Subtracts the second input from the first. Can be used on coordinates and numbers simultaneously.

Uses[edit | edit source]

Used for basic subtraction of coordinates or numbers.

The second input is subtracted from the first input and the value on the first input is preserved, whether that be null or anything else.

Similar Instructions[edit | edit source]

Set Number, Add, Multiply