Help centerConsole

Getting Started

IntroductionCreate a projectIntelliSense

AI Components

Getting started

Courier

Getting startedCommandsConfiguration
Upgrade

Canvas

ExpressionsFilters & functionsCanvasTemplatingVariables
constantdefineddivisible byemptyeveniterablenulloddsame as
Help centerConsole
DocumentationAPI ReferenceGuidesChangelog
CanvasTests

iterable

The iterable test checks if a variable is an array or a traversable object.

{# evaluates to true if the foo variable is iterable #}
{% if users is iterable>
  {% for user in users %}
    Hello {{ user }}!
  {% endfor %}
{% else %}
  {# users is probably a string #}
  Hello {{ users }}!
{% endif %}

Last updated on

even

The even test returns true if the given number is even.

null

The null test returns true if the variable is null.