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
<%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
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