Skip to main content

$arrayLastIndexOf

Returns the index of the last array element matched.

Parameters

ParameterDescription
nameName of the array
elementValue for which the index should be returned

Example

<AoiClient>.addCommand({
name: "array",
code: `
$createArray[data;1;4;5;6;7;8;9;0]
$print[$arrayLastIndexOf[data;6]]
`,
});