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:

PSC recommends what date format yr 2000??? (1997) Displaying photo attached to first record (1997) Targeted Redirect (1999) Escape the Root! (2002) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) Cancel Subscription (1996) WCS Newbie question (1997) WebCatalog for Postcards ? (1997) [append] and SSL (1997) Speaking of... (1999) Lost Field (1998) Running 2 two WebCatalog.acgi's (1996) summ=T (2003) b18 problem on NT 4.0 (1997) Upgrading from 2.1 to 3.0.7 (2000) Converting characters to numbers ... (1997) Public beta 6 for WebCatalog 4.0 is now available (2000) Passing a search through a form (2003) Live hits (2003) price on detail, but not shoppingcart (1997)