$is numeric

Allows you to check if all the characters in the text are numeric.


Example

Running this code will check if the text inserted contains alphabets. This examples says that it does not (false) contain alphabets, therefore, the alert box will be shown as "True".

This is the alert box showing that the statement is "True".

This examples says that it does not (false) contain alphabets, therefore, the alert box will be shown as "False".

This is the alert box showing that the statement is "False".

This examples says that it does (true) contain alphabets, therefore, the alert box will be shown as "True".

This is the alert box showing that the statement is "True".

alert($plugin function("Data and Files Automation.dll", "$is numeric", 123, "False"))
alert($plugin function("Data and Files Automation.dll", "$is numeric", "123a", "False"))
alert($plugin function("Data and Files Automation.dll", "$is numeric", "123a", "True"))

Was this helpful?

Previous Article

$is null or empty

Next Article

$is odd