Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

max/3—determine the maximum of two values


The max/3 function determines the maximum of two values:

$MAXVAL=max($VAL1,$VAL2)

max/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

$MAXVAL

Output

ANY

Returns the maximum value

Use the max/3 to determine the maximum of two values specified in $VAL1 and in $VAL2 and return the result as $MAXVAL. Both input values have to be of the same, simple (nonlist) type.

max/3 example

$MAX_DURATION = max( $PREVIOUS_DURATION , $E.duration );

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*