Ar Append

From GECK
(Redirected from Ar append)
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Appends to the end of an existing regular array (list) a new element.

The regular array must have been initialized prior, for example by using Ar_Construct or Ar_List. This function can not be used to add elements to map or stringmap arrays.

Syntax

[help]
(None) Ar_Append list:array element:multi 

Example

array_var MyList

let MyList := Ar_Construct "array"

Ar_Append MyList, SunnyREF
Ar_Append MyList, 1.5

; * MyList now contains: SunnyREF, 1.5

See Also