Strings: is there a way to do 'nth indexOf'?

Hey all, I’ve got a comma separated string stored in a variable like this:


example value would be: 4.99,red,medium,2

Before I added the last piece, I was using indexOf and lastIndexOf to parse out the stuff between the commas. Now I’ve added a third comma, I need something like ‘nth indexOf’. Does such a thing exist in Axure?

Thank you

Depending on how you build that list I might just use a unique separator for each position.

1 Like

Oh that’s an awesome idea - thank you!

You can nest multiple “indexOf”

nthIndexOf.rp (48.1 KB)

1 Like

Very nice - Thank you for this!