## case

## Description

When evaluating a large number of conditions.

## Syntax



## Example



## for

## Description

Loop over a collection.

## Syntax



## Example

Instead of looping over an existing collection, you can define a range of numbers to loop through. The range can be defined by both literal and variable numbers:



## Variables

During every for loop there are following helper variables available for extra styling needs:

NameTypeDescription
forloop.lengthIntegerlength of the entire for loop
forloop.indexIntegerindex of the current iteration
forloop.index0Integerindex of the current iteration (zero based)
forloop.rindexIntegerhow many items are still left?
forloop.rindex0Integerhow many items are still left? (zero based)
forloop.firstBooleanis this the first iteration?
forloop.lastBooleanis this the last iteration?

## if/else/unless

## Description

Boolean logic operations are available on all objects.

## Syntax



## Example