Regular loop - start step and stop

/ Arrays / Regular loop - start step and stop

  • You can use this as normal for loop we use in PHP or JS
  • Check dump and use various values from counter as per your requirements.

@i.index
The Current Index

@i.counter
Zero based counter

@i.odd
returns 0 or 1

@i.even
returns 0 or 1

@i.first
returns 0 or 1

@i.last
returns 0 or 1

@i.between
returns 0 or 1

@i.series.2
returns 0 or 1 for the series 1,3,5,7

@i.key
The Current Key

@i.value
The Current Value

@i.source
The original array which you are looping through

Categories
Most Popular

Leave a Reply

Your email address will not be published.