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_Example.jpg

In this Example an Add Responses is used to add the values of 2 variables (Value1, Value2) once the user triggers the object named Add Button, and the result of the addition are 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_Add.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_Example.jpg

In this Example a Subtract Responses is used to subtract a value of 5 from the value of the variable named Value1, once the user triggers the object named Activate, and the result of the subtraction are 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_Node2.jpg

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