Hi Phillipp, what exactly do you want to do? May be start and size can help you? And please use only text to send to mailing lists. Regards Tino --On Sonntag, 27. Mai 2001 01:53 +0200 Philipp Robbel <philipp.robbel@eml.villa-bosch.de> wrote:
Hello,
I have a question regarding the use of dtml-Variables in the "start=" and "end=" sections of an <dtml-in..> loop. I have to do a calculation and I would like it to be in the "end=" section of a <dtml-in> loop. I can't get the following code to work: <dtml-in someFunction start=1 end=&dtml-Count;-&dtml-Value;> or: <dtml-in someFunction start=1 end="_.getitem('Count') -_.getitem('Value')"> My current workaround is to set a variable <dtml-call "REQUEST.set('TEMP',_.getitem('Count') -_.getitem('Value'))"> and use that Variable TEMP in my <dtml-in..>:
<dtml-in someFunction start=1 end=TEMP>
And this finally works.
But is there a better solution? Can I do Variable-Additions/Subtractions within the "end=" Section of the <dtml-in..> Tag?
Thank you very much, Philipp Robbel