Difference between revisions of "Ar Append"
Jump to navigation
Jump to search
imported>Odessa (Created) |
imported>Odessa (added extra link) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Added by NVSE V4. Appends to the end of an existing list | |summary = Added by NVSE V4. Appends to the end of an existing regular array (list) a new element. | ||
The | 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. | ||
|name = Ar_Append | |name = Ar_Append | ||
Line 20: | Line 20: | ||
let MyList := Ar_Construct "array" | let MyList := Ar_Construct "array" | ||
Ar_Append MyList, | Ar_Append MyList, SunnyREF | ||
</pre> | </pre> | ||
==See Also== | ==See Also== | ||
*[[Array Variables]] | *[[Array Variables]] | ||
*[[ | *[[Ar_Insert]] | ||
*[[Ar_Resize]] | |||
*[[Ar_Construct]] | *[[Ar_Construct]] | ||
*[[Ar_List]] | *[[Ar_List]] | ||
*[[Let]] | |||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] | ||
[[Category:Array Variables]] | [[Category:Array Variables]] |
Latest revision as of 13:29, 2 July 2014
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Added by NVSE V4. 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
(None) Ar_Append list:array element:multi
Example
array_var MyList let MyList := Ar_Construct "array" Ar_Append MyList, SunnyREF