String indexOf command
Returns the index within this text of the first/last occurrence of the specified subtext, starting the search at the specified index.
Parameters
Name | Type | Possible values | Description |
---|---|---|---|
String* |
String |
|
The text to search in. |
Sub string* |
String |
The text to search for. |
|
Result variable* |
Number |
|
The variable to receive the string value as an integer. |
Begin index |
Number |
The index to begin the search from. If the occurrence is first, search is done from begin index forward. If occurrence is last, search is done from begin index backward. |
|
Occurrence |
String |
First | Last |
The subtext occurrence. |
Comment |
String |
Adds a comment to the script. |
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory parameter