page chokes on hideif when false and ignored

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17597
interpreted = N
texte = I should add that it only breaks when the [math]feeadded[/math]>0 is true.Thanks I'm baffled by a piece of code that works fine when it is supposed to be evaluated (ie [paymethod]!AC ), but when it is supposed to be hidden, the page stops (ie no code HTML, WebCat, etc. further down on page gets evaluated or displayed).Why would a piece of code that is supposed to be ignored cause a problem and it work fine when evaluated? Hopefully it is just a typo, but I'm blind to it right now. [hideif [paymethod]=AC] [math show=f]feeadded=0[/math] [lineitems][showif [sku]=ccfax][math show=f]feeadded=1+feeadded[/math][/showif][/lineitems] [showif [math]feeadded[/math]>0] [returnraw]HTTP/1.0 302 Found Location: verify.tmpl$remove?cart=[cart]&db=db/inventory.db&sku=ccfax&shipchoice=[Shi pchoice]&area=[area]&shipcountry=[country]&cardtype=[url][cardtype][/url]&p aymethod=[paymethod]&shipaddress=[shipaddress][/returnraw] [/showif] [/hideif] (an explanation of the code:If a person doesn't want to put their CC# over the internet, we are giving them the option to fax, mail in the information with an additional handling fee. This code removes the additional fee from the line items if they change their mind to put the CC # is over the net after all. )Thanks!Sandy Associated Messages, from the most recent to the oldest:

    
  1. Re: page chokes on hideif when false and ignored (Sandra L. Pitner 1998)
  2. Re: page chokes on hideif when false and ignored (Michael Winston 1998)
  3. Re: page chokes on hideif when false and ignored (Gary Richter 1998)
  4. page chokes on hideif when false and ignored (Sandra L. Pitner 1998)
  5. page chokes on hideif when false and ignored (Sandra L. Pitner 1998)
I should add that it only breaks when the [math]feeadded[/math]>0 is true.Thanks I'm baffled by a piece of code that works fine when it is supposed to be evaluated (ie [paymethod]!AC ), but when it is supposed to be hidden, the page stops (ie no code HTML, WebCat, etc. further down on page gets evaluated or displayed).Why would a piece of code that is supposed to be ignored cause a problem and it work fine when evaluated? Hopefully it is just a typo, but I'm blind to it right now. [hideif [paymethod]=AC] [math show=f]feeadded=0[/math] [lineitems][showif [sku]=ccfax][math show=f]feeadded=1+feeadded[/math][/showif][/lineitems] [showif [math]feeadded[/math]>0] [returnraw]HTTP/1.0 302 Found Location: verify.tmpl$remove?cart=[cart]&db=db/inventory.db&sku=ccfax&shipchoice=[Shi pchoice]&area=[area]&shipcountry=[country]&cardtype=[url][cardtype][/url]&p aymethod=[paymethod]&shipaddress=[shipaddress][/returnraw] [/showif] [/hideif] (an explanation of the code:If a person doesn't want to put their CC# over the internet, we are giving them the option to fax, mail in the information with an additional handling fee. This code removes the additional fee from the line items if they change their mind to put the CC # is over the net after all. )Thanks!Sandy Sandra L. Pitner

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:

REPOST: Upgrage pricing... The future of WebCatalog is comingwith 4.0... (2000) RePost: NAT and the CART (1999) Blog/social networking shortcut (2007) Simple way to create unique SKU (1997) I am sorry for always being such an ass (2004) [taxrate] question (1997) Nested vs conditional (1997) WebDNA 5 - Function test weirdness or ? (2003) Emailer port change (1997) form variables (2000) log out (2001) Web DNA... (2007) Permissions / Restart WebDNA? (2005) Resume Catalog ? (1997) WebCat2.0 [format thousands .0f] no go (1997) Taxable Shipping (2003) Can you do this??? and other stuff (1997) [WriteFile] problems (1997) Comments in db? (1997) Simple question (1998)