insert: Difference between revisions
Jump to navigation
Jump to search
m (command group) |
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3dev |version1= 2.01" to " |game1= arma3 |version1= 2.02") |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|game1= | |game1= arma3 | ||
|version1= 2. | |version1= 2.02 | ||
|gr1= HashMap | |gr1= HashMap |
Revision as of 13:57, 23 February 2021
Description
- Description:
- Inserts multiple values into Array/String/HashMap.
The String variant also supports forceUnicode. - Groups:
- HashMapArraysStrings
Syntax 1
- Syntax:
- array insert [index, [value1, value2, ...], onlyIfUnique]
- Parameters:
- array : Array
- index: Number - index at which the values will be inserted, -1 for append.
- [value1, value2, ...]: Array of Anything - Values to insert at the specified index
- onlyIfUnique: Bool - Only insert if the value is unique in the array, like pushBackUnique
- Return Value:
- Nothing
Syntax 2
- Syntax:
- string insert [index, substring]
- Parameters:
- string : String
- index: Number - index at which the values will be inserted, -1 for append.
- substring: String - String to insert
- Return Value:
- String - The new string
Syntax 3
- Syntax:
- hashMap insert [[key1, value1], [key2, value2], ...]
- Parameters:
- hashMap: HashMap
- key: HashMapKey
- value: Anything
- Return Value:
- Nothing
Examples
- Examples:
- Example needed
Additional Information
- See also:
- HashMap
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note