[ic] Display Quantity Flypage++

Steve Graham interchange-users@interchange.redhat.com
Thu Feb 28 12:58:01 2002


Fantastic - that did the trick. I didn't realize the spaces were being added 
to the result.  Once, I have tested the code in a few scenarios I will post 
it back for future reference.

Thanks again,
Steve


>From: Joachim Leidinger <jojo@blackpoint.de>
>Reply-To: interchange-users@interchange.redhat.com
>To: interchange-users@interchange.redhat.com
>Subject: Re: [ic] Display Quantity Flypage++
>Date: Thu, 28 Feb 2002 17:48:39 +0100
>
>Steve Graham wrote:
> >
> > Thanks for the suggestion:
> > Here is the current code & results:
> >
> > [tmp tp1][item-price noformat=1][/tmp]
> > [loop prefix=break 
>list="1,2,3,4,5,6,10,12,15,20,24,25,36,48,50,72,100,144"]
> >   [tmp tp2] [price code="[item-code]" quantity="[break-code]" 
>noformat=1]
> > [/tmp]
>
>try it with
>[tmp tp2][price code="[item-code]" quantity="[break-code]"
>noformat=1][/tmp]
>
>and
>
>[tmp tp1][price code="[item-code]" quantity="[break-code]"
>noformat=1][/tmp]
>
>all one line!
>
> > tp1/tp2=[scratch tp1]/[scratch tp2]
> >
> > [if explicit]
> >    [condition]
> >      $Scratch->{tp1} ne $Scratch->{tp2}
> >    [/condition]
> >   [break-code]+ &nbsp;
> >        [price code="[item-code]" quantity="[break-code]"] <br>
> >        [tmp tp1][price code="[item-code]" quantity="[break-code]"
> > noformat=1]
> >        [/tmp]
> >   [/if]
> > [/loop]
> >
> > Results->
> > tp1/tp2=2.65/ 2.65 1+   $2.65
> > tp1/tp2=2.65 / 2.65 2+   $2.65
> > tp1/tp2=2.65 / 2.65 3+   $2.65
> > tp1/tp2=2.65 / 2.65 4+   $2.65
> > tp1/tp2=2.65 / 2.65 5+   $2.65
> > tp1/tp2=2.65 / 2.65 6+   $2.65
> > tp1/tp2=2.65 / 2.65 10+   $2.65
> > tp1/tp2=2.65 / 2.39 12+   $2.39
> > tp1/tp2=2.39 / 2.39 15+   $2.39
> > tp1/tp2=2.39 / 2.39 20+   $2.39
> > tp1/tp2=2.39 / 2.39 24+   $2.39
> > tp1/tp2=2.39 / 2.39 25+   $2.39
> > tp1/tp2=2.39 / 1.99 36+   $1.99
> > tp1/tp2=1.99 / 1.99 48+   $1.99
> > tp1/tp2=1.99 / 1.99 50+   $1.99
> > tp1/tp2=1.99 / 1.99 72+   $1.99
> > tp1/tp2=1.99 / 1.99 100+   $1.99
> > tp1/tp2=1.99 / 1.99 144+   $1.99
> >
> > Ideally the above code would only display the quantities it tp1 is note
> > equal to tp2.
> > It looks like there are some embedded spaces, even though I have 
>requested
> > the noformat=1 modifier. I think this may be the problem. I have tried 
>both
> > the perl ne string comparison, and the != numeric comparison, but still 
>do
> > not get the correct comparison of these values:
> >
> > $Scratch->{tp1} ne $Scratch->{tp2}
> >
> > Thanks for the help
> > -Steve
>
>Joachim
>
>--
>Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
>[leidinger@bpanet.de]
>Black Point Arts Internet Solutions GmbH
>http://www.bpanet.de
>_______________________________________________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com