Gossamer Forum
Home : Products : DBMan : Installation :

Another question

Quote Reply
Another question
Hi,

One of my fields is Tax so when I add the product either say Yes or NO.

One of the hidden fields for my shopping cart has the item number, and if I have no tax on a item I have to add =TF= so I tried doing the following.
Code:
|;
if ($rec{'Tax') eq 'No' ) {
print "=TF=";
}
but it is not working. please tell what i am doing wrong.

------------------
JFrost




Quote Reply
Re: Another question In reply to
A little typo, if you have it in your code like you have it here.

You need

if ($rec{'Tax'} eq 'No' )

Those brackets and parentheses can be really hard to find.


------------------
JPD