[ic] (no subject)
JT Justman
jt at airdelights.com
Wed Jul 6 18:53:45 EDT 2005
Michael wrote:
> Hi all,
> I am looking for some help with the below code. I am trying to have a
> payment option show up when there is a zero balance,
>
> [if explicit]
> [condition]
> $test = [total-cost];
> return 1 if $test eq "$0.00" ;
> return 0;
> [/condition]
>
> [if variable CHECK_ACCEPTED]
> <option [selected mv_free] value="Free">[L]Free[/L]
> [/if]
> [/if]
>
>
> Can anyone help me?
Try putting $0.00 in single quotes. Double quotes cause perl to
interpolate variables, thus the contents of the variable $0 concatinated
with '.00' are being compared.
JT
More information about the interchange-users
mailing list