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
Tests

empty

The empty test checks if a variable is an empty string, an empty array, an empty hash, exactly false, or exactly null.

{% if foo is empty>
  ...
{% endif %}

Last updated on

divisible by

The divisible by test checks if a variable is divisible by a number.

even

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