Math Multiply Integer
The Math Multiply Integer node performs integer multiplication on two input values and outputs the result.Inputs
a(integer): The first value to multiply. Default value is 0.b(integer): The second value to multiply. Default value is 0.
Outputs
result(integer): The product of the two input values.
Configuration
This node has no configuration options.Usage
- Add the Math Multiply Integer node to your spell.
- Connect integer values to the
aandbinput ports. These can come from other nodes or be set as default values. - The node will output the product of
aandbon theresultport. - Connect the
resultto other nodes as needed in your spell.
Example
Here’s a simple example spell that multiplies two hardcoded values using the Math Multiply Integer node: In this example:- The
ainput is hardcoded to the value 42. - The
binput is hardcoded to 7. - The Math Multiply Integer node multiplies these to get 42 * 7 = 294.
- The result, 294, is output to the
resultport.
Tips
- If either input is not connected, the node will use that input’s default value of 0.
- You can multiply by negative numbers to perform subtraction. For example, 5 * -3 = -15.
- Multiplying any number by 0 will always result in 0.
