append <Value> to array <Var/Array>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

append <Value> to array <Var/Array>

Post by mark_a_condren » Mon, 13. Sep 10, 19:55

append <Value> to array <Var/Array>


<Value> = The value that is to be appended (added to the end of) the selected array.
<Var/Array> = The array that is to have the value added to it.


Adds a new value to the end of the specified array.
The target array is one element larger after this instruction executes.
This command will only work with an existed array. If the array does not exsist it must be created first.

Example:

$value = 5
append $value to array $this.array

This would add the $value (5) to the end of the array $this.array.


Command Location:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 286845

Post by X2-Illuminatus » Sat, 9. Oct 10, 21:32

append <Value> to array <Var/Array>


<Value> = Der Wert, der an das (Ende des) ausgewählten Array angehängt wird.
<Var/Array> = Das Array, dem der Wert angehängt wird.


Fügt einen neuen Wert ans Ende des angegebenen Arrays an.
Das Ziel-Array ist nach der Ausführung dieses Befehls um ein Element größer als vorher.
Dieser Befehl funktioniert nur mit einem bereits existierenden Array. Wenn das Array noch nicht existiert, muss es zunächst erstellt werden.

Beispiel:

$value = 5
append $value to array $this.array

Dies würde den Wert $value (5) an das Array $this.array anhängen.


Zu finden unter:

User avatar
Juggernaut93
Posts: 2897
Joined: Sun, 17. Jul 11, 21:03
x4

[39]286845

Post by Juggernaut93 » Wed, 31. Jul 13, 11:42

append <Value> to array <Var/Array>


<Value> = Il valore da appendere (cioè inserire alla fine) all'array selezionato.
<Var/Array> = L'array a cui deve essere aggiunto il valore.


Aggiunge un nuovo valore alla fine dell'array specificato.
L'array di destinazione è più grande di un elemento dopo l'esecuzione di quest'istruzione.
Questo comando funzionerà solo con un array esistente. Se l'array non esiste deve essere prima creato.

Esempio:

$value = 5
append $value to array $this.array

Quest'istruzione aggiunge $value (5) alla fine dell'array $this.array.


Posizione dell'istruzione nella lista:

Locked

Return to “MSCI Reference”