Posted 29 March 2014 - 09:39 PM
I'm kind of a noob in CC, but I know my way around most things. My question: How can I take a string, and find it in a table, then get the index of it?
For example:
I enter the text "Bob", which is in my table. It searches the table, and returns "5", which means table[5].
How would I do this? I know how to get the text of a value (name = table[5]), but not the other way around.
For example:
I enter the text "Bob", which is in my table. It searches the table, and returns "5", which means table[5].
How would I do this? I know how to get the text of a value (name = table[5]), but not the other way around.
Edited on 29 March 2014 - 08:45 PM