Find Index

From UBot Studio
Revision as of 20:22, 20 November 2012 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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