Is Number
From UBot Studio
(Difference between revisions)
(Created page with " This function is an Advanced Text function in the UBot Extended Library. This function will determines whether text contains only numbers. It will return "True" for numbe...") |
Revision as of 21:19, 18 June 2015
This function is an Advanced Text function in the UBot Extended Library. This function will determines whether text contains only numbers. It will return "True" for numbers and "False" for strings contain no numbers.
Text to check: The text being checked for numbers. Can also be a variable, list item, table cell or any function.
Example
set(#sampletext,"5464","Global") alert($is number(#sampletext))
Running the script will return a "True" or "False" if the variable is a number.
Since the variable in this example is a number, the alert produces the output "True".
set(#sampletext,"five thousand","Global") alert($is number(#sampletext))
Since the variable in this example contains no numbers, the alert produces the output "False".