Getelementofarray - HerculesWS/Hercules GitHub Wiki

Syntax

  • getelementofarray(<array></array>, <index></index>);

Description

This command retrieves the value of the element of given array at given index. This is equivalent to using:

 array[index]

The reason for this is, that this short form is internally converted into a call to getelementofarray, when the script is loaded.

Examples

 [[if]](@varl!=@vars)
 {
     [[mes]] "This will never be shown";
 }

Category:Script Command

⚠️ **GitHub.com Fallback** ⚠️