Formulas What if.

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22649
interpreted = N
texte = What happens if I have a [interpret] in shipcost and a number value gets input instead of a formula based on the shipvia value?ie I have this in the formulas [interpret][lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipvia]&returnfield=ShipCost] [/interpret] in one instance this is plugged in: [math show=f]rate=0[/math][showif [subtotal]<200][math show=f]rate=12[/math][/showif][showif [subtotal]<150][math show=f]rate=10[/math][/showif][showif [subtotal]<100][math show=f]rate=8[/math][/showif][showif [subtotal]<50][math show=f]rate=6[/math][/showif][showif [subtotal]<25][math show=f]rate=4[/math][/showif][hideif [subtotal]<200][math show=f]rate=0[/math][/hideif][math]rate*1[/math]in another this is: $15.00Robert Minor _________________________________________________________________________ Cybermill Communications webmaster@cybermill.com 8616 Joseph Ave. http://www.cybermill.com St. Louis, MO 63144 (314) 962-4024 _________________________________________________________________________ Purveyors of fine websites and high bandwith. Colocation and domain hosting available. Associated Messages, from the most recent to the oldest:

    
  1. Re: Formulas What if. (PCS Technical Support 1999)
  2. Formulas What if. (Bob Minor 1999)
What happens if I have a [interpret] in shipcost and a number value gets input instead of a formula based on the shipvia value?ie I have this in the formulas [interpret][lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipvia]&returnfield=ShipCost] [/interpret] in one instance this is plugged in: [math show=f]rate=0[/math][showif [subtotal]<200][math show=f]rate=12[/math][/showif][showif [subtotal]<150][math show=f]rate=10[/math][/showif][showif [subtotal]<100][math show=f]rate=8[/math][/showif][showif [subtotal]<50][math show=f]rate=6[/math][/showif][showif [subtotal]<25][math show=f]rate=4[/math][/showif][hideif [subtotal]<200][math show=f]rate=0[/math][/hideif][math]rate*1[/math]in another this is: $15.00Robert Minor _________________________________________________________________________ Cybermill Communications webmaster@cybermill.com 8616 Joseph Ave. http://www.cybermill.com St. Louis, MO 63144 (314) 962-4024 _________________________________________________________________________ Purveyors of fine websites and high bandwith. Colocation and domain hosting available. Bob Minor

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:

Site Builder & IE Mac (2004) HTML encoding in URLs (1997) covertchars db to keep CR's, but not new ones (2002) Unexpected comparison behavior change in 4.5.1 (2003) Items XX to XX shown (1997) [WebDNA] linux linux linux (2009) Linux [decrypt] bug exists only on webcat 3 or also 4? (2000) RequiredFields template (1997) suffix mapping for NT? (1997) Secure server question (1997) Target wit redirect (1998) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) PSC recommends what date format yr 2000??? (1997) Printing a final order (1997) [price] maddness (2002) Search/sort in URL Was: GuestBook example (1997) Adding up weights (1998) BUG in [showif] using ^ (contains) (1997) emailer truncates last letter! (1997) Not much on today :( (2004)