Ends With
From UBot Studio
(Difference between revisions)
(Created page with " This function is an Advanced Text function in the UBot Extended Library. This function checks whether a string begins with specified text. '''Text to check:''' The text ...") |
|||
Line 1: | Line 1: | ||
− | This function is an [[Advanced Text]] function in the UBot Extended Library. This function checks whether a string | + | This function is an [[Advanced Text]] function in the UBot Extended Library. This function checks whether a string ends with specified text. |
'''Text to check:''' The text being checked for the substring. | '''Text to check:''' The text being checked for the substring. |
Latest revision as of 19:00, 24 September 2016
This function is an Advanced Text function in the UBot Extended Library. This function checks whether a string ends with specified text.
Text to check: The text being checked for the substring.
Substring to check: Substring being searched for.
Can also be a variable, list item, table cell or any function.
[edit] Example
set(#sentence,"Watch these bite-sized sessions once you\'ve made your purchase","Global") alert($ends with(#sentence,"purchase"))
Running the script will return a "True" if the substring is found or "False" if the substring is not.
Since the sentence in the variable ends with the substring "purchase", the function returns with "True".