JOIN

JOIN(<glue>,<array[]>,[&output])

Type: Action

Category: Variables

Permission: N/A

Since Minecraft Version: v1.6.2

Since Version: v0.9.10

Minor: 9

API: 12

Patch: 10


Description

Combines all values inside <array[]> with <glue> and stores it optionally in [&output].

Returns the output.

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

JOIN("--",&array[],&variant1)
&variant2 = JOIN(", ",&array[])

// Outputs "Join--Hello--World"
LOG(%&variant1%)

// Outputs "Join, Hello, World"
LOG(%&variant2%)

Changelog
  • Added em v0.9.10: