Table of Contents

max

Description

Return the greater of two numbers.

Function prototype

variant max <variant:arg1> <variant:arg2>

Arguments

Name Type Comment
arg1 variant The first number to be evaluated.
arg2 variant The second number to be evaluated.

Return value

The greater of arg1 and arg2.

Example

echo <zs:max 1 2>

… the output of which is written to the event log by echo as:

2

Comments

None.

See also