$arraySearch

To search for a value in an array. If it exists, it will return the position of the value. If not, -1 is returned.

Usage

$arraySearch[Value to search;array name (optional)]

Example:

Member05/28/2024
!!exec $textSplit[Mido/Rake/Azz;/]
Mido is in position: $arraySearch[Mido]
Azz is in position: $arraySearch[Azz]
InvalidName is in position: $arraySearch[justsomeweirdrandom]

Custom Command Bot 05/28/2024
Mido is in position: 1
Azz is in position: 3
InvalidName is in position: -1