This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

array Twig test

Defined in /modules/core/classes/core_twigextension.php, lines 268-268
Author LemonStand eCommerce Inc.
boolean function array(mixed $var)
$var mixed specifies the variable to test.
{return} boolean returns TRUE if the specified variable is an array. Returns FALSE otherwise.
Tests whether the specified variable is array. Usage example:
{% if value is not array %}
  <input type="hidden" name="{{ name }}" value="{{ value }}"/>
{% else %}
  {% for item in value %}
    <input type="hidden" name="{{ name }}" value="{{ item }}"/>
  {% endfor %}
{% endif %}