CBA_fnc_join

DEPRECATEDPlease use joinString added in Arma 3 1.50

Description

Joins an array of values into a single string.

Eeach value is joined around a separator string.  Inverse of CBA_fnc_split.

Parameters

_arrayArray to join together as a string [Array]
_separatorString to put between each element of _array [String, defaults to “”]

Returns

The joined string [String]

Example

_result = [["FISH", "Cheese", "frog.sqf"], "\"] call CBA_fnc_join;
// _result ==> "FISH\Cheese\frog.sqf"

_result = [[3, 2, 1, "blast-off!"], "..."] call CBA_fnc_join;
// _result ==> "3...2...1...blast-off!"

Author

Spooner

Splits a string into substrings using a separator.
Close