index_of()
Usage
index_of(string, word)
or
Structr.indexOf(string, word)
in JavaScript context
Description
Returns the position of the first occurrence of the given word in the given string, or -1 if the string doesn’t contain the word.
Example
${index_of('This is a test', 'test')}
results in
10