Tile - String - Index Of – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Image:Ylands_Tile_-_String_index_of.png]] | [[Image:Ylands_Tile_-_String_index_of.png]] | ||
*Returns '''position''' of the '''first''' occurrence of a specified '''text''' in a [[Ylands Tile - String literal|'''string''']]. | *Returns '''position''' of the '''first''' occurrence of a specified '''text''' in a [[Ylands Tile - String literal|'''string''']]. | ||
*Returns '''-1''' if the text is '''not found'''. | |||
*'''Start index''' | *'''Start index''' | ||
**Position at which to start the search | **Position at which to start the search |
Revision as of 15:21, 20 December 2018
- Returns position of the first occurrence of a specified text in a string.
- Returns -1 if the text is not found.
- Start index
- Position at which to start the search
- Script counts positions from zero. 0 is the first position in a string, 1 is the second, 2 is the third ...
Notes
- Instruction is case sensitive.