Skip to main content

Data Types \ Number \ Operations

Response_Value_Number_Add.png Add


Add_Node.jpg

The Add response enables user to add two values by either typing in a numerical value in Number A and Number B field or by attaching a value or a variable node the those ports, then once the response is executed the resulting value can be acquired through the Result port.



Example

Add_Example2.jpg

In this Example an Add Response is used to add the values of 5 to the value of Variable1 once the user triggers the object named Activate, and the result of the addition is then written in a variable named Result, which can then be connected to a variable writer to be displayed during the VR Experience.




Response_Value_Number_subtract.png Subtract


Subtract_Node.jpg

The Subtract response enables user to subtract a value from another by either typing in a numerical value in Number A and Number B field or by attaching a value or a variable node the those ports, then once the response is executed the resulting value can be acquired through the Result port.



Example

Subtract_Example2.jpg

In this Example a Subtract Response is used to subtract the value of Variable 1 from the value of the variable named Variable2, once the user triggers the object named Activate, and the result of the subtraction is then written in a variable named Result, which can then be connected to a variable writer to be displayed during the VR Experience.




Response_Value_Number_Multiply.png Multiply


Multiply_Node.jpg

The Multiply response enables user to multiply two values by either typing in a numerical value in Number A and Number B field or by attaching a value or a variable node the those ports, then once the response is executed the resulting value can be acquired through the Result port.



Example

Multiply_Node3.jpg

In this Example a Subtract Response is used to subtract the value of Variable 1 from the value of the Variable 2,  then a Multiply Response is used to multiply the subtraction result by 3 once the user triggers the object named Activate, and the result of the multiplication is then written in a variable named Result, which can then be connected to a variable writer to be displayed during the VR Experience.

 


Response_Value_Number_divide.png Divide


Divide_node.jpg

The Divide response enables user to divide a value by another value, by either typing in a numerical value in Number A and Number B field or by attaching a value or a variable node the those ports, then once the response is executed the resulting value can be acquired through the Result port.



Example

Divide_Example.jpg

In this Example a Divide Response is used to divide the number 25 by the value of the variable named "Variable1" and the result of the division is then written in a variable named Result, which can then be connected to a variable writer to be displayed during the VR Experience.