Scripting > UNICOM Intelligence Function Library > Mathematical functions > MinOf
 
MinOf
Returns the lowest value from a list of values.
Syntax
MinOf(Val1 [, Vals, ...])
Parameters
Val1
Type: None
First data value.
Vals
Type: None
Variable number of other values.
(return)
Type: None
The minimum of all values.
Remarks
The MinOf function compares non-null values and returns the lowest value. If all values are null, the return value is null. If no other values are supplied, the return value is Val1. For values of type Object, the value of the object's default property is used.
Example
The following mrScriptBasic example uses the MinOf function to get the lowest of a number of values:
MinOf(8, 9.2, 24, 1.75)
See also
Mathematical functions