Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Question about template parsing

Quote Reply
Question about template parsing
Hello,

In my link.html template I'm trying to do a comparison but it doesn't want to work.

U_GP is an extra field and RepAdjCost is a calculated value.

Here is the template comparisons I'm trying to work with, but I don't know why it's not working. Am I overestimating what the parse sub can do

Code:

<%if U_Username%>
<%if RepAdjCost < U_GP%>
<a href="<%db_cgi_url%>/equipme.cgi?add=<%ID%>&gp=<%RepAdjCost%>">Buy Item</a>
<%endif%>
<%if RepAdjCost > U_GP%>
Not enough gold
<%endif%>
<%endif%>

U_Username is just %Username% but the site is integrated with the software fromerly known as W3T :D

Any help and ideas would be appreciated

Subject Author Views Date
Thread Question about template parsing phoule 6990 Nov 11, 2001, 9:02 AM
Thread Re: [phoule] Question about template parsing
Stealth 6866 Nov 11, 2001, 9:13 AM
Thread Re: [Chewbaca] Question about template parsing
phoule 6885 Nov 11, 2001, 9:18 AM
Thread Re: [phoule] Question about template parsing
Paul 6862 Nov 11, 2001, 9:21 AM
Thread Re: [RedRum] Question about template parsing
phoule 6873 Nov 11, 2001, 9:26 AM
Thread Re: [phoule] Question about template parsing
Paul 6868 Nov 11, 2001, 9:26 AM
Thread Re: [RedRum] Question about template parsing
phoule 6873 Nov 11, 2001, 9:33 AM
Post Re: [phoule] Question about template parsing
klangan 6813 Nov 21, 2001, 7:38 AM
Thread Re: [RedRum] Question about template parsing
phoule 6870 Nov 11, 2001, 9:43 AM
Post Re: [phoule] Question about template parsing
phoule 6884 Nov 11, 2001, 1:13 PM
Post Re: [phoule] Question about template parsing
Stealth 6857 Nov 11, 2001, 9:32 AM