Find Index

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "$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 ad...")

Revision as of 20:22, 20 November 2012

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

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.

File:Findindex.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox