Skip to main content
Roberty Studio
RPAFunctions

Check value in range

Check value in range

Checks whether a number is inside an interval defined by a minimum and a maximum value, returning true or false. Useful for validating limits — such as checking whether a score is within an acceptable range or whether a monetary value is within the budget.


Options​

Minimum value​

Enter the lower limit of the interval. The number checked must be greater than or equal to this value for the result to be true.

Maximum value​

Enter the upper limit of the interval. The number checked must be less than or equal to this value for the result to be true.

Number​

Enter the number that will be checked within the interval defined by the fields above.

Returns​

Javascript code​

js
actions["action-id"].inRange // true if the number is within the interval, false otherwise (Boolean)

Field selection​

  • inRange — indicates whether the number is within the interval defined (Boolean)

Rules and Conditions​

  • The Minimum value, Maximum value and Number fields are all required.
  • Returns true if the number is greater than or equal to the minimum and less than or equal to the maximum.
  • The three values must be numeric for the comparison to work correctly.