Itteration. hows that going to work in max ?
Yavin, I feel compelled to help you as it was me who recommended you use this thread. But, I don't fully understand this stuff myself yet so please forgive me if I'm giving you dodgy info ;)
I think you may find TLists (linked lists) suitable there, and it is a LOT more simple than the example you've posted.
You can create a linked list, add objects dynamically (strings in this case) to the list, then search through or modify the list in several ways (there are quite a few commands for lists). One way would be a simple 'For a$=EachIn list' loop which could be used to return the string (a similar thing can be done with arrays), or 'ListContains(list:TList,value:Object)' which would return true or false depending on whether the string exists.
I'm not sure if you can read them or not without registering, but here are a couple of threads about using the TLists. (may or may not help you)
http://www.blitzmax.com/Community/posts.php?topic=41548
http://www.blitzmax.com/Community/posts.php?topic=41708
Hope this helps answer your question :)