iterator.range ViewHelper <vhs:iterator.range> 

Iterator Range ViewHelper 

Implementation of range for Fluid

Creates a new array of numbers from the low to the high given value, incremented by the step value.

Usage examples 

Numbers 1-10: {v:iterator.implode(glue: ',') -> v:iterator.range(low: 1, high: 10)}
Even numbers 0-10: {v:iterator.implode(glue: ',') -> v:iterator.range(low: 0, high: 10, step: 2)}

Copied!

Arguments 

low 

DataType
integer
Default
1
Required
false
Description
The low number of the range to be generated

high 

DataType
integer
Required
true
Description
The high number of the range to be generated

step 

DataType
integer
Default
1
Required
false
Description
The step (increment amount) between each number

as 

DataType
string
Required
false
Description
Template variable name to assign; if not specified the ViewHelper returns the variable instead.