[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: me, bugs and 3.14
* Christian J. Müller (cmueller@polinet.ch) [15.06.99 12:28]:
> Try:
> [currency]
> [calc]$n = 1+1.5[/calc]
> [/currency]
>
> This should work! [calc] works like [perl].
Perhaps it should, but it does not work for me :(
>From the docs:
----------
[calc]
Starts a region where the arguments are calculated according to normal
arithmetic symbols.
For instance:
[calc] 2 + 2 [/calc]
will display:
4
[/calc]
Terminates the calculated region. The [calc] tag is really the same as the
[perl] tag, except that it doesn't accept arguments, is more efficient to
parse, and is interpolated at a higher precedence.
TIP: The [calc] tag will remember variable values inside one page, so you
can do the equivalent of a memory store and memory recall for a loop.
----------
So I thought a simple calculation would do the trick...
Any other ideas?
Balu