Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Template syntax - maths operators

Quote Reply
Template syntax - maths operators
Hi,

I have just been reading the GT::Template syntax guide for Links SQL and I am a little stuck on the math operators.

I am trying to show 5% less of varaiable 'cost' to 2 decimal places. Cost is a numerical variable.

i.e. <%cost%> is the normal product cost but I want to add a second value below it as a sale price, hence why I would like Links SQL to calculate the 5% dicount automatically.

Hope that makes sense.

Regards

Alex



Indigo Clothing is a t-shirt printing company based in the UK.
Indigo Clothing | Promotional Clothing | T-Shirt Printing | Embroidery
Subject Author Views Date
Thread Template syntax - maths operators IndigoClothing 1432 Oct 11, 2003, 8:49 AM
Thread Re: [IndigoClothing] Template syntax - maths operators
IndigoClothing 1367 Oct 15, 2003, 8:50 AM
Post Re: [IndigoClothing] Template syntax - maths operators
Andy 1358 Oct 15, 2003, 8:57 AM