Find Index

From UBot Studio
Jump to: navigation, search

$Find Index is a Text Function.

The function returns the index of a piece of text with the original string.

Please see the Pad Text function for an additional example.

Original Text: The text where the text is located. Accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell.

Text to Find: The text within the Original text where the index is pulled from. Accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell.

Example

set(#index, $find index("UBot Studio", "Studio"), "Global")


Running the script sets the variable in the set command to the index of the string under "text to find". The index of the string "Studio" in the original string "UBot Studio" is 5.


Indx0.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox