IndexOf

The IndexOf() function returns the position of a text within another text.

It will return 0 if the searched text was not found.

This function is NOT case-sensitive.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

WEM functions are 1-based where it concerns position parameters: 1 is the first position.

Syntax

Parameters

Name
Type
Required
Description

source

text

☑️

the source in which the function will search for the search text

search

text

☑️

the text to search for

Last updated

Was this helpful?