BIS_fnc_subSelect

From Bohemia Interactive Community
Revision as of 19:42, 3 April 2006 by BIS fnc exportFunctionsToWiki (talk) (Generated by BIS_fnc_exportFunctionsToWiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/************************************************************
	Subarray Select

Returns a sub-selection of the passed array. There are various
methods the sub-array can be determined.

Parameters: [array, beg, <end>]
Returns: subarray

array - Array to select sub array from.
beg - Index of array to begin sub-array. If negative, index is
	counted from the end of array.
end - Optional. Index of array to end the sub-array. If ommitted,
	remainder of the array will be selected. If negative, it
	specifies the length of the sub-array (in absolute form).

Examples:

	_array = ["a","b",true,3,8];
	[_array, 2] call BIS_fnc_subSelect; //returns [true,3,8]
	[_array, -2] call BIS_fnc_subSelect; //returns [3,8]
	[_array, 1, 3] call BIS_fnc_subSelect; //returns ["b",true,3]
	[_array, 1, -2] call BIS_fnc_subSelect; //returns ["b",true]

************************************************************/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

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

Notes

Bottom Section