Min ViewHelper <f:min>
Note
This reference is part of the documentation of Fluid Standalone. If you are working with Fluid in TYPO3 CMS, please refer to TYPO3's ViewHelper reference instead.
The MinViewHelper returns the minimum element from an array.
Example
<f:min value="{0: '1', 1: '2', 2: '3'}" />
Copied!
Output:
1
Copied!
Go to the source code of this ViewHelper: MinViewHelper.php (GitHub).
Arguments
The following arguments are available for the min ViewHelper:
value
-
- Type
- array
An array