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][lookupdb=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][mathshow=f]rate=12[/math][/showif][showif [subtotal]<150][mathshow=f]rate=10[/math][/showif][showif [subtotal]<100][mathshow=f]rate=8[/math][/showif][showif [subtotal]<50][mathshow=f]rate=6[/math][/showif][showif [subtotal]<25][mathshow=f]rate=4[/math][/showif][hideif [subtotal]<200][mathshow=f]rate=0[/math][/hideif][math]rate*1[/math]in another this is:$15.00Robert Minor_________________________________________________________________________Cybermill Communications webmaster@cybermill.com8616 Joseph Ave. http://www.cybermill.comSt. 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:
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][lookupdb=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][mathshow=f]rate=12[/math][/showif][showif [subtotal]<150][mathshow=f]rate=10[/math][/showif][showif [subtotal]<100][mathshow=f]rate=8[/math][/showif][showif [subtotal]<50][mathshow=f]rate=6[/math][/showif][showif [subtotal]<25][mathshow=f]rate=4[/math][/showif][hideif [subtotal]<200][mathshow=f]rate=0[/math][/hideif]
[math]rate*1[/math]in another this is:$15.00Robert Minor_________________________________________________________________________Cybermill Communications webmaster@cybermill.com8616 Joseph Ave. http://www.cybermill.comSt. 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:
syntax question, not in online refernce (1997)
Quitting WebMerchant ? (1997)
WebCat Contest Please Clarify (1998)
wierd [cart] action! (1997)
SQL weirdness (2000)
setting cookies for another domain? (2002)
PIXO support (1997)
WebCatalog stalls (1998)
Price Not Appearing (2000)
[SHOWIF] (1997)
HTML tags inside textarea (2000)
[WebDNA] Downloadable docs (2011)
Re[2]: Next X hits (1996)
[WebDNA] Still having problems (2008)
OT-test (1998)
Kaaaaahhhhhhhnnnnnnn! (1997)
More Search Engine (2002)
Re1000001: Setting up shop (1997)
[LOOKUP] (1997)
[WebDNA] paypal (2009)