Link to this page
Print this page
Parent topic
:
String Functions
Template Functions
/
String Functions
indexOf()
The
indexOf()
function returns the position of a substring in a string.
Sytnax
indexOf(
expr1
,
expr2
)
Note:
Return position of substring
string(expr2)
in
string(expr1)
[return -1 if
string(expr2)
is not found in
string(expr1)
].