skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Maximum value
 

Try Corticon Now

Maximum value

SYNTAX

<Number1>.max(<Number2>)

DESCRIPTION

Returns either <Number1> or <Number2>, whichever is greater.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

The following Rulesheet uses .max to compare the values of decimal1 and decimal2, and integer1 and integer2, and posts a message based on their size relative to 5.0 and 8, respectively.

SAMPLE RULETEST

A sample Ruletest provides four examples, two using decimal1 and decimal2, and two using integer1 and integer2 as input data.