Is Blank
From UBot Studio
(Difference between revisions)
Line 2: | Line 2: | ||
This function is an [[Advanced Text]] function in the UBot Extended Library. This function will determines whether text is empty or contains only white space. It will return "True" for white space and "False" for strings contain values. | This function is an [[Advanced Text]] function in the UBot Extended Library. This function will determines whether text is empty or contains only white space. It will return "True" for white space and "False" for strings contain values. | ||
− | '''Text to check:''' The text being checked for white space. Can also be a [[Set|variable]], [[list item]], [[Set Table Cell|table cell]] or any function. | + | '''Text to check:''' The text being checked for white space. Can also be a [[Set|variable]], [[$list item|list item]], [[Set Table Cell|table cell]] or any function. |
Revision as of 21:09, 18 June 2015
This function is an Advanced Text function in the UBot Extended Library. This function will determines whether text is empty or contains only white space. It will return "True" for white space and "False" for strings contain values.
Text to check: The text being checked for white space. Can also be a variable, list item, table cell or any function.
Example
set(#sampletext,"","Global") alert($is blank(#sampletext))
Running the script will return a "True" or "False" if the variable is blank.
Since the variable in this example is blank, the alert produces the output "True".
set(#sampletext,"Not Blank","Global") alert($is blank(#sampletext))
Since the variable in this example contains text, the alert produces the output "False".