On 08/23/2012 08:56 AM, Richard Thomas wrote:
For an array variable, the vmethod .size tells you the number of elements, eg
[% light.size %]
For a hash, try [% light.keys.size %]
Hope that helps,
RET
Sent from my iPhone
That's precisely what I'm looking for. And my
On 23/08/12 13:15, Mark Haney wrote:
I have a question regarding the FOREACH loops. I have a FOREACH being
used to loop through an array to insert various images into a table.
Like this:
[% FOREACH light IN lights %]
For an array variable, the vmethod .size tells you the number of elements, eg
[% light.size %]
For a hash, try [% light.keys.size %]
Hope that helps,
RET
Sent from my iPhone
On 21/08/2012, at 4:21 AM, Mark Haney wrote:
> I have a question regarding the FOREACH loops.
I have a question regarding the FOREACH loops. I have a FOREACH being
used to loop through an array to insert various images into a table.
Like this:
[% FOREACH light IN lights %]
I have a question regarding the FOREACH loops. I have a FOREACH being
used to loop through an array to insert various images into a table.
Like this:
[% FOREACH light IN lights %]