different 'Display' links based on the %%CategoryID%% token.
The code is shown below:
<TD COLSPAN=2 align=right>
<!--agorascript-pre
&capture_STDOUT;
# Conditional Link Printing - we need to display two different page layouts, one for BAC libraries
# and the other for Nylon Filters/Pools and Superpools
my $product_name = "%%CategoryID%%";
if($product_name eq 'Nylon_Filters' || $product_name eq 'Pools_and_Superpools')
{
print"<A HREF=\"%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=1a1\">";
}
elsif($product_name eq 'BAC_Library')
{
print"<A HREF=\"%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=1a\">";
}
# End conditional html printing
&uncapture_STDOUT;
-->
<FONT FACE=ARIAL>Display</FONT></A>
</TD>
The trouble is that no links are printed, obviously because the 'if' statements are not returning true. However, they should be. Printing out
the variable $product_name when debugging correctly returns one of the three product categories we have in our store: Nylon_Filters, Pools_and_Superpools, and BAC_Library. Since these are the only three possibilities, and they are covered by my if statement, I don't understand why the links are not being conditionally displayed in my browser.
Is it the way agora.cgi is handling the code, or have I just been staring at the page for too long and can't see the glaring error that is looming there?
Thanks once again for your help

_________________
I could set the building on fire..
http://www.punchcard-pcs.com/gaming_graveyard