Is Number

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(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...")
 
 
Line 1: Line 1:
  
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.
+
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 [[Set|variable]], [[$list item|list item]], [[Set Table Cell|table cell]] or any function.
 
'''Text to check:''' The text being checked for numbers. Can also be a [[Set|variable]], [[$list item|list item]], [[Set Table Cell|table cell]] or any function.

Latest revision as of 17:47, 24 September 2016

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.


[edit] 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