Skip to content

Commit 9388de6

Browse files
author
Javier Eguiluz
committed
[ExpressionLanguage] Add more information about the min/max functions
1 parent f332fd8 commit 9388de6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

reference/formats/expression_language.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ This will print out ``true``.
172172
``min()`` function
173173
~~~~~~~~~~~~~~~~~~
174174

175-
This function will return the lowest value::
175+
This function will return the lowest value of the given parameters. You can pass
176+
different types of parameters (e.g. dates, strings, numeric values) and even mix
177+
them (e.g. pass numeric values and strings). Internally it uses the :phpfunction:`min`
178+
PHP function to find the lowest value::
176179

177180
var_dump($expressionLanguage->evaluate(
178181
'min(1, 2, 3)'
@@ -183,7 +186,10 @@ This will print out ``1``.
183186
``max()`` function
184187
~~~~~~~~~~~~~~~~~~
185188

186-
This function will return the highest value::
189+
This function will return the highest value of the given parameters. You can pass
190+
different types of parameters (e.g. dates, strings, numeric values) and even mix
191+
them (e.g. pass numeric values and strings). Internally it uses the :phpfunction:`max`
192+
PHP function to find the highest value::
187193

188194
var_dump($expressionLanguage->evaluate(
189195
'max(1, 2, 3)'

0 commit comments

Comments
 (0)