Number Between

This object is used to check whether a number lies between two numbers or not.


App Builder Object


In Ports

Position

Name

Message

Description

Position

Name

Message

Description

1

Trigger

Trigger

Port that needs to be triggered to activate the object

2

Value

Number

Port that gets the number. Number will be checked whether it is between minimum and maximum

3

Min

Number

Port for a number that will be the minimum

4

Max

Number

Port for a number that will be the maximum


Out Ports

Position

Name

Message

Description

Position

Name

Message

Description

1

Out

Digital

This port is used to send out the result of the comparison once the object executes


Example

A quick app example on how the object can be used.

To trigger the object we will use a simple interface button. Before triggering we need to set a Number for the value we want to be checked. Also we need to set a minimum number and a maximum number. The value will then be checked between those numbers. We use three Input Number objects to set the numbers. The output will be displayed by the debug object or can be used for further processing.

If you start the app now and go to the dashboard it should look like this.

We can now set the Value and all other numbers. Pressing the button will execute the object and we will get a result.

We want to check whether the number 2 is between 1 and 3. As you can see we getting the result “ON“ so the number is between the minimum and maximum. The result would also be positive if you use 1 or 3 for the value because those numbers are still in the range. Using a 0 or a 4 will give you a “OFF“ aka negative result for the comparison.