$isNumber

Returns whether the provided value is a number or not.

Tip

true means the value is a number, false means it isn’t.

Syntax

$isNumber[Value]

Parameters

  • Value (Type: String || Flag: Emptiable): The text to check.

Example

$nomention
Is number? $isNumber[$message]
!example 52 Is number? true !example 52.4 Is number? true !example hello Is number? false

What is this?

How $message works?

🤖 Playground

Here you can understand how this function works.

Input:

$isNumber[]

Output:

Is number? true