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

Try Corticon Now

Minimum value

SYNTAX

<Number1>.min(<Number2>)

DESCRIPTION

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

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 .min 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 decimal inputs, and two using integers.