winracer
04-03-2009, 09:09 AM
I am trying to do and if statment within a print qq~
here is the code
print qq~
<td valign=top>
<a href="$script_url?session_key=$session_key&display_subcategories=on&category=$category_link">
<img src="$graphics_dir/$image" border=0 alt="$category"></a></td>
<td valign=top><font face=arial size=4>
<a href="$script_url?session_key=$session_key&display_subcategories=on&category=$category_link"><b>$category</b></a> <i>($numbers{$category})
if ($num_adNEW[21] eq "$category")
{
$new_graphic_html
}
else
{
}
<font size=2><br>$description
</font></td>~;
ok this part of the code is where I am having trouble it prints out on the web page. I know it is with in the print is there a way to still use a if stament and not print to web page unless the stament is true
if ($num_adNEW[21] eq "$category")
{
$new_graphic_html
}
else
{
}
here is the code
print qq~
<td valign=top>
<a href="$script_url?session_key=$session_key&display_subcategories=on&category=$category_link">
<img src="$graphics_dir/$image" border=0 alt="$category"></a></td>
<td valign=top><font face=arial size=4>
<a href="$script_url?session_key=$session_key&display_subcategories=on&category=$category_link"><b>$category</b></a> <i>($numbers{$category})
if ($num_adNEW[21] eq "$category")
{
$new_graphic_html
}
else
{
}
<font size=2><br>$description
</font></td>~;
ok this part of the code is where I am having trouble it prints out on the web page. I know it is with in the print is there a way to still use a if stament and not print to web page unless the stament is true
if ($num_adNEW[21] eq "$category")
{
$new_graphic_html
}
else
{
}