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 AM To: WebDNA Talk Subject: 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.html Donovan -- =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 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: if then else. BUG? ( "Scott Anderson" 2003)
  2. if then else. BUG? ( Donovan Brooke 2003)
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 AM To: WebDNA Talk Subject: 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.html Donovan -- =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 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:appending to the database (1999) PCS Frames (1997) Webcatalog error, Plug-in for Webstar (1996) [trim]?! (2004) Nested vs conditional (1997) Template Encryption (1998) Frames and WebCat (1997) Format of Required fields error message (1997) [tcp connect]-dumb question? (1998) Include a big block of text (1997) Undeliverable Mail (1997) Last desperate attempt (1998) Re:2nd WebCatalog2 Feature Request (1996) Search and path arguments (1998) WebCatalog2 Feature Feedback (1996) Template Cache problem -- new plugin for ya' (2000) suffix mapping for NT? (1997) Using [Showif] tag. Mac (1997) Upcoming 2.1 Release and PCS Committment (1997) Talk List Suggestions (1997)