---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listHope =everyone in the US had a nice 4th of July.....Chicago stopped its lakefront fireworks extravaganza years =ago.... ;(A somewhat simple [math] addition snippet is driving me =nutsI've seen this referenced one way or another in the =talklists.....=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DAnother trick for =dealing with fields that may be blank is to prepend
them with a 0 within the math context:[math][_itemamount]+[_postage]+0[_donation][/math]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3DDoesn't behave as mentioned =that way for me.....I'm ultimately snatching some =price values and doing simple addition:[text =show=3DF]totalcharges=3D[math][ad_listing_price]+[promo_topspot_price]+[photo_update_pr=ice][/math][/text](there will be many more fields, but for now =I'm just dealing with those 3)If any one of those 3 price variables is not =passed from the form the addition will not happen.If all 3 are passed they =total up just fine.There might be as many as 13 fields getting totaled up when =complete.There might be just one price to pass along, maybe 2 or 3 to =add up, maybe 4 or 5 etcAdding a "0" like mentioned in the talklist =entries I've found does nothing.I've used [listvariables] and [formvariables] =to be sure those 3 prices are being passed around OK and they =are....Something simple I'm missing or flying over my =head?Adding [hideif]s =into that [math] part is an option, but looking for a simpler =solution.I'm running =version 6.2 on Windows Server2008Searching the newer =talklist gets a little clunky at times using that form......To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
|
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listHope =everyone in the US had a nice 4th of July.....Chicago stopped its lakefront fireworks extravaganza years =ago.... ;(A somewhat simple [math] addition snippet is driving me =nutsI've seen this referenced one way or another in the =talklists.....=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DAnother trick for =dealing with fields that may be blank is to prepend
them with a 0 within the math context:[math][_itemamount]+[_postage]+0[_donation][/math]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3DDoesn't behave as mentioned =that way for me.....I'm ultimately snatching some =price values and doing simple addition:[text =show=3DF]totalcharges=3D[math][ad_listing_price]+[promo_topspot_price]+[photo_update_pr=ice][/math][/text](there will be many more fields, but for now =I'm just dealing with those 3)If any one of those 3 price variables is not =passed from the form the addition will not happen.If all 3 are passed they =total up just fine.There might be as many as 13 fields getting totaled up when =complete.There might be just one price to pass along, maybe 2 or 3 to =add up, maybe 4 or 5 etcAdding a "0" like mentioned in the talklist =entries I've found does nothing.I've used [listvariables] and [formvariables] =to be sure those 3 prices are being passed around OK and they =are....Something simple I'm missing or flying over my =head?I'm running =version 6.2 on Windows Server2008Searching the newer =talklist gets a little clunky at times using that form......To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...