Tile - Array - Index Of – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
---- | ---- | ||
{{Ylands scripting navbox}} | {{Ylands scripting navbox}} | ||
[[Category: Ylands 0.10]] | |||
[[Category: Instructions]] |
Revision as of 15:26, 2 January 2019
- Returns position (index) of the specified object
- If the item is present more than once, instruction returns the position of the first occurrence.
- Returns -1 if the object is not found.
Notes
- Index numbers always start from 0, e.g: Array of length 3 has indexes 0, 1, 2