BIS_fnc_findExtreme

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2: Operation Arrowhead version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.00

Description

Description:
Returns the minimum or maximum value in an array of numbers.

Syntax

Syntax:
[numbers, mode] call BIS_fnc_findExtreme
Parameters:
numbers: Array - a set of numbers
mode: Number - 0 (find minimum) or 1 (find maximum)
Return Value:
Number

Examples

Example 1:
_result = [[1,4,5,8,3,7], 1] call BIS_fnc_findExtreme; // returns 8 _result = [[1,4,5,8,3,7], 0] call BIS_fnc_findExtreme; // returns 1

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_lowestNumBIS_fnc_greatestNumselectMinselectMax

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section