Max ViewHelper <f:max>
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 MaxViewHelper returns the maximum element from an array
Example
<f:max value="{0: '1', 1: '2', 2: '3'}" />
Copied!
Output:
3
Copied!
Go to the source code of this ViewHelper: MaxViewHelper.php (GitHub).
Arguments
The following arguments are available for the max ViewHelper:
value
-
- Type
- array
An array