Tile - String - Last Index Of – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with " ---- {{Ylands scripting navbox}}")
 
No edit summary
Line 1: Line 1:
[[Image:Ylands_Tile_-_String_last_index_of.png]]
*Returns '''position''' of the '''last''' occurrence of a specified '''text''' in a [[Ylands Tile - String literal|'''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'''.




----
----
{{Ylands scripting navbox}}
{{Ylands scripting navbox}}

Revision as of 16:21, 20 December 2018

Ylands Tile - String last index of.png

  • Returns position of the last 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.



Template:Ylands scripting navbox