Re: Another IfThenElse question..

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54222
interpreted = N
texte = Well, the WebDNA parser is setup in such a way, that an exception in the equation parser will result in the ELSE clause getting executed. Not saying that this is the correct behavior though. Personally, I think it would be better to output an exception error, and stop the template processing. -----Original Message----- From: Donovan Brooke [mailto:dbrooke@euca.us] Sent: Tuesday, November 18, 2003 12:09 PM To: WebDNA Talk Subject: Re: Another IfThenElse question.. That looks like it did it Scott (though I was changing a bunch of other things at the time :-). It is working now. I do have a question though. Why does nulling out one comparison cause the else context to enact when the *second* comparison is results TRUE? I would think this would make the if statement true? Donovan Scott Anderson wrote: > The problem is that ([balance]>0) throws an exception in the equation parser > in the case where balance is NULL (has no value), which is excepted. > > Try this: > > [if (0[BALANCE]>0)|("[BALANCE]"="")] > ^ > > Note that the 0 padding ensures that there is a valid equation to parse. -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  2. Re: Another IfThenElse question.. ( Scott Anderson 2003)
  3. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  4. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  5. Re: Another IfThenElse question.. ( Marc Kaiwi 2003)
  6. Re: Another IfThenElse question.. ( Scott Anderson 2003)
  7. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  8. Re: Another IfThenElse question.. ( Jesse Proudman 2003)
  9. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  10. Re: Another IfThenElse question.. ( Jesse Proudman 2003)
  11. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  12. Re: Another IfThenElse question.. ( Donovan Brooke 2003)
  13. Re: Another IfThenElse question.. ( Marc Kaiwi 2003)
  14. Re: Another IfThenElse question.. ( "Erol Guneri" 2003)
  15. Another IfThenElse question.. ( Donovan Brooke 2003)
Well, the WebDNA parser is setup in such a way, that an exception in the equation parser will result in the ELSE clause getting executed. Not saying that this is the correct behavior though. Personally, I think it would be better to output an exception error, and stop the template processing. -----Original Message----- From: Donovan Brooke [mailto:dbrooke@euca.us] Sent: Tuesday, November 18, 2003 12:09 PM To: WebDNA Talk Subject: Re: Another IfThenElse question.. That looks like it did it Scott (though I was changing a bunch of other things at the time :-). It is working now. I do have a question though. Why does nulling out one comparison cause the else context to enact when the *second* comparison is results TRUE? I would think this would make the if statement true? Donovan Scott Anderson wrote: > The problem is that ([balance]>0) throws an exception in the equation parser > in the case where balance is NULL (has no value), which is excepted. > > Try this: > > [if (0[BALANCE]>0)|("[BALANCE]"="")] > ^ > > Note that the 0 padding ensures that there is a valid equation to parse. -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.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://webdna.smithmicro.com/ Scott Anderson

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:

RE: shrink-wrapped version out yet? (1997) [WebDNA] Internal [ipaddress] ? (2009) Text limits in NT version? (1997) Emailer (1997) [ReturnRaw] and hiding FORM data (2003) rounding onlu UP (2002) Using Plug-In while running 1.6.1 (1997) The max=0 issue is a bug ... CALL TO ACTION (2000) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) User / Pass in TCP connect (2007) Beta 18 (1997) [WebDNA] v 7 append (2012) 2.1b3 --> way slow (1997) Getting Total Quantity (1997) Typhoon Rev. and PCS store problems (1999) same product in cart (1997) Moment of Thanks (1997) Striping Characters (1998) (off topic).upload in webstart (2001) Createfolder / writefile problem (2004)