Indexof

Description
Finds the index of the first pattern match within the source string. Returns the index location at the beginning of the math, otherwise 0. Case-sensitive.

Syntax
indexof

Parameters

 * source
 * any text
 * pattern
 * string to find within the source text

Examples
var sourcetext Hello World eval result indexof("%sourcetext","Wo") Result: 7

var sourcetext Hello World eval result indexof("%sourcetext","H") Result: 1