Ugrás a fő tartalomhoz
Verzió: 18

ARRAY_SET

Sets the value of an item in an array.

Description

Sets the value of a specific item in an array. If the array was not defined previously, then this command will create the array, and then set the specified item's value.

Syntax

ARRAY_SET [Array name] [Item index] [Item value]

Command parameters

Command parameterAssignmentValue formatInput options
Array nameRequiredStringLocal, variable
Item indexRequiredIntegerLocal, variable
Item valueRequiredString, integer, floatLocal, variable

Array name:

Name of the array.

Item index:

Index number of the item to be set. Indexing starts from 0, so the first item has the index number 0.

Item value:

Value of the item to be set.

Sample code

ARRAY_SET Data 0 1234