Is Blank

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 count the number of times a substring appears in text. '''Text to search in:'...")
 
Line 22: Line 22:
  
  
 +
 +
<pre>
 +
set(#sampletext,"Not Blank","Global")
 +
alert($is blank(#sampletext))
 +
 +
</pre>
  
 
Since the variable in this example contains text, the alert produces the output "False".
 
Since the variable in this example contains text, the alert produces the output "False".

Revision as of 21:05, 18 June 2015

This function is an Advanced Text function in the UBot Extended Library. This function will count the number of times a substring appears in text.

Text to search in: The text the substring is being counted in.

Text to search for: The substring being counted

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".


Isblankt.jpg


set(#sampletext,"Not Blank","Global")
alert($is blank(#sampletext))

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


Isblankf.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox