Custom Command
FunctionsArray Functions

$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:

Member
9/5/2026

!!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
APP
9/5/2026

Mido is in position: 1 Azz is in position: 3 InvalidName is in position: -1

On this page