Re: if then else. BUG?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53407
interpreted = N
texte = Looks like a bug in your logic ;)'IF ( P | Q )' is not the same as 'IF ( !P | !Q )''IF ( P | Q )' is the same as 'IF ( !P & !Q )'So test two should be:[if ("[page]" ! "[raw][page][/raw]") & ("[page]" ! "")] ^-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]Sent: Thursday, October 16, 2003 9:55 AMTo: WebDNA TalkSubject: if then else. BUG? Test one works:[if ("[page]" = "[raw][page][/raw]") | ("[page]" = "")] [then] var eqauls var name or nothing [/then] [else] var does not equal var name or nothing [/else][/if]Test two does not work:[if ("[page]" ! "[raw][page][/raw]") | ("[page]" ! "")] [then] var does not eqaul var name or nothing [/then] [else] var does equal var name or nothing [/else][/if]My results:http://www.euca.us/admin/tests/iftest.htmlDonovan-- =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 WWW Developer / Consultant <-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 email:> dbrooke(AT)euca.us 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:
Looks like a bug in your logic ;)'IF ( P | Q )' is not the same as 'IF ( !P | !Q )''IF ( P | Q )' is the same as 'IF ( !P & !Q )'So test two should be:[if ("[page]" ! "[raw][page][/raw]") & ("[page]" ! "")] ^-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]Sent: Thursday, October 16, 2003 9:55 AMTo: WebDNA TalkSubject: if then else. BUG? Test one works:[if ("[page]" = "[raw][page][/raw]") | ("[page]" = "")] [then] var eqauls var name or nothing [/then] [else] var does not equal var name or nothing [/else][/if]Test two does not work:[if ("[page]" ! "[raw][page][/raw]") | ("[page]" ! "")] [then] var does not eqaul var name or nothing [/then] [else] var does equal var name or nothing [/else][/if]My results:http://www.euca.us/admin/tests/iftest.htmlDonovan-- =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 WWW Developer / Consultant <-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 email:> dbrooke(AT)euca.us 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:
search zip codes ranges (2003)
Reloading Shopping Carts (1998)
Help! WebCat2 bug (1997)
Multiple prices (1997)
Help! (1996)
I hate talking to myself on this list (2004)
Emailer file formats (1998)
Listserver problem (1997)
Only charge card when product shipped ? (1997)
PDF template hell (2000)
WebDNA vs PHP (2003)
SKU (1997)
Price written to db as scientific notation??? (1999)
Shop from PDF (2004)
BUG in [showif] using ^ (contains) (1997)
dates and hex formatting (1997)
item sorting (1997)
Flat-file to XML converter (2006)
More questions about serial number dishing (1997)
A Global Variable (1997)