Skip to content

$findTextSplitIndex

$findTextSplitIndex will return the index of a text split element after a given query.

Usage

$findTextSplitIndex[query]

Parameters

FieldTypeDescriptionRequired
querystringQuery.true

Example(s)

This will return 3 as the first Cya in this $textSplit is in the third position:

1
client.command({
2
name: "findTextSplitIndex",
3
code: `
4
$findTextSplitIndex[Cya]
5
$textSplit[Hello, Bye, Cya;, ]
6
`
7
});