Multiplication
Description
This object is being used to multiply two numbers.
App Builder Object
Source Code
function execute() {
return [inPorts[1].value * inPorts[2].value];
}
Examples
Example | Initialize | In 1 | In 2 | Out |
---|---|---|---|---|
1 | Trigger | 2 | 2 | 4 |
2 | Trigger | -3 | 2 | -6 |
3 | Trigger | -4 | -3 | 12 |
In Ports
Position | Name | Message Type | Description |
---|---|---|---|
1 | Trigger | Trigger | This port is being used to trigger the 'Multiplication' object. |
2 | In 1 | Number | This port is being used to receive a number for the ‘Multiplication’. Once the message is received this object executes. |
3 | In 2 | Number | This port is being used to receive a number for the ‘Multiplication’. Once the message is received this object executes. |
Out Ports
Position | Name | Message Type | Description |
---|---|---|---|
1 | Out | Number | This port is being used to sent out the number that has been generated by the 'Multiplication' object. |
Properties
Name | Description |
---|---|
Object Name | The name on the object on the canvas. |
Show Code View | The switch to turn on code view for the Code Object. |
Duplicate Code into custom Code Object |