
11-03-2007, 12:49 AM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
You can't compare arrays with the == operator, that's why index() is not working with arrays either. If you convert it to string then it's comparing each array member with a string comparison and is return the wished index. This can also help if you want to find an object in an array with the same name, just give @object or object.name as parameter to the index() function. |
|
|
|