Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Description

This object is being used to subtract 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

0

2

Trigger

1

2

-1

3

Trigger

5

3

2

4

Trigger

-3

-2

-1


In Ports

Position

Name

Message Type

Description

1

Trigger

Trigger

This port is being used to trigger the 'Subtraction' object.

2

In 1

Number

This port is being used to receive a number for the ‘Subtraction’. Once the message is received this object executes.

3

In 2

Number

This port is being used to receive a number for the ‘Subtraction’. 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 'Subtraction' 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

  • No labels