View Single Post
  #8  
Old 11-03-2007, 12:49 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote