PUT

PUT(<array[]>,<value>)

Type: Action

Category: Variables

Permission: N/A

Since Minecraft Version: v1.4.6

Since Version: v0.9.7

Minor: 9

API: N/A

Patch: 7


Description

Inserts <value> at the first empty point in <array[]>.

Example
&array[0] = "Hello"
&array[2] = "World"

// Adds an element at the first empty point in the array
PUT(&array[],"Inserted")

// Outputs "Hello", "Inserted" and "World"
FOREACH(&array[],&string)
    LOG(%&string%)
NEXT

Changelog
  • Added em v0.9.7: