Finding repetition number of a search string
I am using global repeating variables in a script. I need to find the repetition number of a string. For example:
- $Colors has the values red, green, yellow, blue and orange in it.
- If I give Filemaker the string "blue" I want it to return the number 4.
Does anyone know how to do this?