Re: shipping & multiple comparisons?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32758
interpreted = N
texte = [showif [ship]^3,4,5][math][subtotal]+6.00][/math][/showif] will not work.[showif [ship]=3][math][subtotal]+6.00][/math][/showif][showif [ship]=4][math][subtotal]+6.00][/math][/showif][showif [ship]=5][math][subtotal]+6.00][/math][/showif]should work fine.The way your code is set up the math context will show what is being addedto subtotal butit will not be stored for latter use[showif [ship]<3][math]tempvar=[subtotal]+4.50[/math][/showif]the new subtotal will be stored in [tempvar]you can also get away with doing [math show=f ]ship=0[lineitems]+[quantity][/lineitems][/math] instead ofthis [text]ship=[math]0[lineitems]+[quantity][/lineitems][/math][/text]Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 *********************************-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of ParkerSent: Tuesday, June 06, 2000 8:07 AMTo: WebCatalog TalkSubject: shipping & multiple comparisons?trying to get the following to work as replacement for[grandtotal]. [ship] is[text]ship=[math]0[lineitems]+[quantity][/lineitems][/math][/text]which works great:[showif [ship]<3][math][subtotal]+4.50[/math][/showif][showif [ship]^3,4,5][math][subtotal]+6.00][/math][/showif][showif [ship]>5][math][subtotal]*.15[/math][/showif]<3 and >5 works fine obviously, but I'm having trouble withmultiple comparisons ala the middle one... I also triedsplitting them up like:[showif [ship]=3][math][subtotal]+6.00][/math][/showif][showif [ship]=4][math][subtotal]+6.00][/math][/showif][showif [ship]=5][math][subtotal]+6.00][/math][/showif]but that just displays 0 for some reason... I'm close, butwhat do I need to get that 3-5 to work at $6.00?? Thanks andforgive if this is obvious.. I couldn't find what I need inthe list archives or docs yet on inclusive comparisons etc.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
[showif [ship]^3,4,5][math][subtotal]+6.00][/math][/showif] will not work.[showif [ship]=3][math][subtotal]+6.00][/math][/showif][showif [ship]=4][math][subtotal]+6.00][/math][/showif][showif [ship]=5][math][subtotal]+6.00][/math][/showif]should work fine.The way your code is set up the math context will show what is being addedto subtotal butit will not be stored for latter use[showif [ship]<3][math]tempvar=[subtotal]+4.50[/math][/showif]the new subtotal will be stored in [tempvar]you can also get away with doing [math show=f ]ship=0[lineitems]+[quantity][/lineitems][/math] instead ofthis [text]ship=[math]0[lineitems]+[quantity][/lineitems][/math][/text]Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 *********************************-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of ParkerSent: Tuesday, June 06, 2000 8:07 AMTo: WebCatalog TalkSubject: shipping & multiple comparisons?trying to get the following to work as replacement for[grandtotal]. [ship] is[text]ship=[math]0[lineitems]+[quantity][/lineitems][/math][/text]which works great:[showif [ship]<3][math][subtotal]+4.50[/math][/showif][showif [ship]^3,4,5][math][subtotal]+6.00][/math][/showif][showif [ship]>5][math][subtotal]*.15[/math][/showif]<3 and >5 works fine obviously, but I'm having trouble withmultiple comparisons ala the middle one... I also triedsplitting them up like:[showif [ship]=3][math][subtotal]+6.00][/math][/showif][showif [ship]=4][math][subtotal]+6.00][/math][/showif][showif [ship]=5][math][subtotal]+6.00][/math][/showif]but that just displays 0 for some reason... I'm close, butwhat do I need to get that 3-5 to work at $6.00?? Thanks andforgive if this is obvious.. I couldn't find what I need inthe list archives or docs yet on inclusive comparisons etc.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
WebDNA Support
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
BR (1997)
Bug Report, maybe (1997)
[WAY OFF TOPIC] anybody live in Kansas? (2003)
Which GUI HTML editors work with WC ? (1997)
Checking for blank form fields (sort of...) (1998)
off topic
[quantity] solved (1997)
Country & Ship-to address & other fields ? (1997)
Emailer (1997)
Cannot calculate prices (1997)
docs for WebCatalog2 (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
Lost and Recovered. (1998)
two unique banners on one page (1997)
Using [Showif] tag. Mac (1997)
Format date.... (2003)
[WebDNA] Authorize working connection... (2019)
Multiple Pulldowns (1997)
Need relative path explanation (1997)