<dtml-let percentage="duration/(planAffort)"> works fine with a given duration and planAffort (yes i checked planAffort<>0), why cant i set <dtml-let percentage="round((duration/(planAffort)),2)"> or <dtml-let mylength="len(anyVariable)"> Thnx Dorian
dorian santner wrote:
<dtml-let percentage="duration/(planAffort)">
works fine with a given duration and planAffort (yes i checked planAffort<>0),
why cant i set <dtml-let percentage="round((duration/(planAffort)),2)">
or <dtml-let mylength="len(anyVariable)">
as for random, never used it; len is accessed via the dtml-namespace "_" so <dtml-let mylength="_.len(anyVariable)"> hans ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
dorian santner writes:
<dtml-let percentage="duration/(planAffort)">
works fine with a given duration and planAffort (yes i checked planAffort<>0),
why cant i set <dtml-let percentage="round((duration/(planAffort)),2)">
or <dtml-let mylength="len(anyVariable)"> Name clashes are a big problem with DTML.
To alleviate it a bit, build in functions are not inside the DTML namespace but are attributes of it. You access them as "_.len", for example. The set of exposed builtin functions is severely limited, though... Dieter
participants (3)
-
Dieter Maurer -
dorian santner -
hans