I am storing user data in an array and I am separating each entry with a "|||" separator. I can load these fine but I have given each individual an id number that they enter on another website. The data gets pulled down using an ajax request URL - this all works fine. What I want to do is search through the array and find the occurrence of the users id number in that array and then get the index of that occurrence so as to only load that persons data.
So the question is how do I find the index of an occurrence of string in an array?
Maybe this is what you mean.
If I have a number in an array to find, and i want to find the index of that I use the following, I normally store the result in a global variable.
Array > contains value str(User ID here) -------- System set Global Variable to indexof(str(User ID))
you need str, if you are finding a number, and not a string, otherwise str is not needed.
Hope this might be what you are looking for?