Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Simple Addition in Template?

Quote Reply
Simple Addition in Template?
I'd like to add three variables together... can I do that in a template or do I have to do it somewhere else? For example I have three variables, Visits1, Visits2, and Visits3. Shouldn't I be able to do this:

<%Visits1 + Visits2 + Visits3%>

I also tried:

<%set Total = 0%>

<Total += Visits1>,

<Total += Visits2>,

<Total += Visits3>

<%Total%>

But neither work... any ideas on how to best do this?
Subject Author Views Date
Thread Simple Addition in Template? LanceWilson2 3051 May 21, 2003, 1:23 PM
Thread Re: [LanceWilson2] Simple Addition in Template?
604 2966 May 21, 2003, 2:53 PM
Post Re: [TheStone] Simple Addition in Template?
LanceWilson2 2970 May 21, 2003, 3:55 PM