![]() |
String Lists
is there a Flag to see if something is contained in a string list?
like NPC Code: |
lindexof(list,text)
If it returns -1, it's not there. |
thanks ^_^ i was trying to use a for loop and then i decided there was a differant way after it didnt work :( but yea.. just outta curiousity... whats lindexof stand for...? les all tihnk?
|
It's the string list version of indexof - the function for finding the index of the start of one string in another.
|
=/ i was hoping it was an acronym for something wacky...
lost imbred naughyy dogs experience xordberging osterichs flying or somethin REALLY cool |
list index of.
:P |
Yeh, what they said..
String array's are easier.. ;) |
Quote:
indexof is for finding the position of partstr in str indexof(partstr,str) |
Quote:
|
Quote:
lindexof( str, list ) - position of where the string appears in the string list indexof() would be for like finding something in the players text or a non-array string |
Kain has a point. I edited my post to be less ambiguous.
|
| All times are GMT +2. The time now is 04:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.