Skip to main content
Functions

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

Custom code

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

Field selection

  • isNumber — indicates whether the value provided is numeric (Yes/No)

Rules and Conditions

  • The Value field is required.
  • 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.