Skip to main content
Roberty Studio
RPAFunctions

Check numerical value

Check numerical value

Checks whether a given value can be interpreted as a number. Useful for validating user input or data coming from spreadsheets and external systems before performing calculations or conversions, avoiding errors in later steps of the automation flow.


Options​

Value, text or variable​

Enter the value you want to check. It can be a fixed text typed directly, the return of a previous action or a variable already defined in the flow.

Returns​

Javascript code​

js
actions["action-id"].isNumber // true if the value can be interpreted as a number, false otherwise (Boolean)

Field selection​

  • isNumber — indicates whether the value provided is numeric (Boolean)

Rules and Conditions​

  • Dots are treated as thousands separators and the comma as the decimal separator — for example, "1.234,56" is recognized as numeric.
  • Returns true if the value can be converted to a number, and false otherwise.
  • Texts made up only of digits, such as "42" or "3.14", are recognized as numeric.
  • Texts with letters or symbols that are not part of a number return false.