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 theequation parser will result in the ELSE clause getting executed. Not sayingthat this is the correct behavior though. Personally, I think it would bebetter 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 PMTo: WebDNA TalkSubject: Re: Another IfThenElse question..That looks like it did it Scott (though I was changinga bunch of other things at the time :-). It is working now.I do have a question though. Why does nulling outone comparison cause the else context to enact whenthe *second* comparison is results TRUE?I would think this would make the if statement true?DonovanScott Anderson wrote:> The problem is that ([balance]>0) throws an exception in the equationparser> 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 toWeb 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:
Well, the WebDNA parser is setup in such a way, that an exception in theequation parser will result in the ELSE clause getting executed. Not sayingthat this is the correct behavior though. Personally, I think it would bebetter 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 PMTo: WebDNA TalkSubject: Re: Another IfThenElse question..That looks like it did it Scott (though I was changinga bunch of other things at the time :-). It is working now.I do have a question though. Why does nulling outone comparison cause the else context to enact whenthe *second* comparison is results TRUE?I would think this would make the if statement true?DonovanScott Anderson wrote:> The problem is that ([balance]>0) throws an exception in the equationparser> 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 toWeb 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:
Multiple Items (1998)
RE: too many nested [xxx] (1997)
WebCat2b15MacPlugin - showing [math] (1997)
WebCommerce: Folder organization ? (1997)
Can I invoke an ssi plugin from within a webcat page (1997)
WebDNA tags in WebMerchant email templates ... (1997)
Permissions / Restart WebDNA? (2005)
Running 2 two WebCatalog.acgi's (1996)
PCS Frames (1997)
Spelling Checker (2003)
ssl/empty cart problem (2003)
Attention eCommerce Sites (deadline 12/12) (1997)
no serial? (1998)
Banners (1997)
[WebDNA] java and webnda (2017)
Looking for WebCatalog Programmer in Silicon Valley (1998)
Multi-Row Tables from a search. (1997)
Editing Users.db (1997)
WebCatalog Work (2001)
RE: WebDNA-Talk searchable? (1997)