You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Axel Seinsche <st...@seinsche.net> on 2004/09/05 22:53:59 UTC

How to iterate forEach in reverse order?

Hi all,

I have a forEach loop which iterates from startValue to endValue, which 
works fine. But forEach wants me that startValue is smaller than 
endValue. If I want to iterate from a bigger value down to a smaller 
it's not possible. I tried to switch start and end value but without 
success. Even to set a step of '-1' didn't help. Is it possible to 
iterate from a bigger value down to a smaller value?

TIA,
Axel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org