Is Number

From UBot Studio
Jump to: navigation, search

This function is an Advanced Text function in the UBot Extended Library. This function will determine 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".


Isnumy.jpg


set(#sampletext,"five thousand","Global")
alert($is number(#sampletext))

Since the variable in this example contains no numbers, the alert produces the output "False".


Isnumf.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox