Number Compare

Description

This object is being used to compare two value’s against each other.


App Builder Object


Source Code

function execute() { const val1 = parseFloat(inPorts[1].value) || 0; const val2 = parseFloat(inPorts[2].value) || 0; if (val1 > val2) { return [true, false, false]; } if (val1 < val2) { return [false, true, false]; } return [false, false, true]; }

In Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Trigger

Trigger

This port is being used to trigger the comparison of the two values.

2

Value 1

Number

This port is being used to receive the first value for the comparison.

3

Value 2

Number

This port is being used to receive the second value for the comparison.


Out Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Greater

Digital

This port is being used to send out a message in case value 1 is greater than value 2.

2

Less

Digital

This port is being used to send out a message in case value 1 is less than value 2.

3

Equal

Digital

This port is being used to send out a message in case value 1 is equal to value 2.


Properties

Name

Description

Name

Description

Object Name

The name of 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