POP

POP(<array[]>,<outvar>)

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

Removes the last entry from the end of <array[]> and stores it in <outvar>.

Returns the popped element.

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

POP(&array[],&string)

// Outputs "World"
LOG(%&string%)

Changelog
  • Added em v0.9.7: