I use tokenat and tokencount, which are great for working with lists of data w/ delimiters.
Is there an equivalent function to find the index of a value within a list?
For example, something like tokenfind("apples|oranges|bananas", "oranges", "|") would return the value 1.
Develop games in your browser. Powerful, performant & highly capable.
There is no dedicated expression, but if you loop through the tokens within the string, comparing each token to the desired value, the loopindex will be the index of the matching token. If you'll be using this same process in multiple areas of your project, it would make sense to create your own function for finding a token's index.