Type.isArray ViewHelper <be:type.isArray> 

ViewHelper to check whether the given value is an array.

   <f:if condition="{be:type.isArray(value: myVariable)}">
       <f:then>myVariable is an array</f:then>
       <f:else>myVariable is not an array</f:else>
   </f:if>
Copied!

Go to the source code of this ViewHelper: Type\IsArrayViewHelper.php (GitHub).

Arguments

The following arguments are available for the type.isArray ViewHelper:

value

value
Type
mixed
Required
1
The variable being checked