View Single Post
  #14  
Old 10-28-2003, 02:51 PM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default

Quote:
Originally Posted by adpboss
Could really use some help with my code

It's so close

I do believe that you can use 'and' in your 'if' statements. So, you code might look something like this:

Code:
{* $Id: products_colors.tpl,v 1.0 2003/10/26 13:07:50 ADPBoss Exp $ *} {if $products[cat_num].forsale eq "N"} bgcolor="#00CCCC"} {else} {if $products[cat_num].forsale eq "N" and $products[cat_num].avail eq "0"} bgcolor="#CCCCCC"} {if $products[cat_num].forsale eq "N" and $products[cat_num].avail eq "1"} bgcolor="#FFFF99"} {/if}

I'm not a master programmer either, so this may be a shot in the dark. Maybe Shan, Boomer or Funky could shed some light on this if thay happen to stroll through here.

Piper

P.S. Let me know what happens!
Reply With Quote