[TYPO3-english] Compare strings in fluid
Alexander Kuemmel
alexander.kuemmel at gmail.com
Sun Oct 6 10:03:25 CEST 2013
Hi Jeppe,
I've only done little with iterations yet, but from a programming
perspective, you're accessing an iterator, which is an object only to
the current iteration state, so I don't see the purpose of "cycle-1".
But you might save the current state of the string and compare it in the
next iteration to the new state.
Hope that make sense to you.
Cheers,
Alexander.
On 09/30/2013 01:16 PM, Jeppe Donslund wrote:
> Hi Alexander
>
> Yes, it is possible to compare strings, but can't figure it out if it it
> is possible to compare between elements.
>
> if I run through my elements setting iteration="d" I get the valye d.cycle.
>
> What I would like to compare is if(d.cycle.string != d.cycle-1.string)
>
> Is that possible? And does it make sense?
>
>
> Kind regards
> Jeppe
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list