Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

min

Summary

Returns the smallest value of all parameters.

Usage

min( value1, value2 [,...] )

Parameters

NameTypeDescriptionRequired
value1 any A value that should be evaluated. Yes.
value2 any Another value that should be evaluated. Yes.

Returns

The smallest value of all parameters.

Description

This operator returns the smallest value of all parameters. The input parameter is ignored.

Examples

Example 1

{min( 10, 20, 6, 40, 50 )}

The following output will be produced: "6".

Example 2

{min( array( 1, 2 ), array( 1, 2, 3 ) )}

The following array will be returned: ( 1, 2 ).

Balazs Halasy (05/02/2004 10:47 am)

Ester Heylen (13/10/2009 8:55 am)

Balazs Halasy, Ester Heylen


Comments

  • Description says quite the wrong thing

    "Returns
    The smallest value of all parameters.

    Description
    This operator returns the largest value of all parameters."