max

Gets the maximum (larger) of two expressions.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

expr max(data1,data2)
expr     data1, data2

Example

Returns the maximum commission.
{
numeric max_comm = 0;
.
.
max_comm = max(max_comm,COMM);
.
.
}