min/3—determine the minimum of two values
The min/3 function determines the minimum of two values.
$MINVAL=min($VAL1,$VAL2)
min/3 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$VAL1 | Input | ANY | Specifies the first value to be compared |
$VAL2 | Input | ANY | Specifies the second value to be compared to the first value |
$MINVAL | Output | ANY | Returns the minimum value |
Use the min/3 to determine the minimum of two values specified in the $VAL1 and $VAL2 arguments and return the result as $MINVAL. Both input values must be the same, simple (non-list) type.
min/3 example
$MIN_DURATION = min( $PREVIOUS_DURATION , $E.duration );
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*