Index - script and chart function
Index() searches a string to find the starting position of the nth occurrence of a provided substring. An optional third argument provides the value of n, which is 1 if omitted. A negative value searches from the end of the string. The positions in the string are numbered from 1 and up.
Syntax:
Index(text, substring[, count])
Return data type: integer
Arguments:
Argument | Description |
---|---|
|
The original string. |
|
A string of characters to search for in |
|
Defines which occurrence of |