Re: if then else. BUG?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53408
interpreted = N
texte = My logic has been known to have bugs :-) However, I do want the "or" comparison in this case. If page = "[page]" shouldn't I get results from below stating: "var does equal var name or nothing" ? [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] Donovan Scott Anderson wrote: > 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]" ! "")] -- =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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: if then else. BUG? ( Donovan Brooke 2003)
  2. Re: if then else. BUG? ( "Scott Anderson" 2003)
  3. Re: if then else. BUG? ( Donovan Brooke 2003)
  4. Re: if then else. BUG? ( "Scott Anderson" 2003)
  5. if then else. BUG? ( Donovan Brooke 2003)
My logic has been known to have bugs :-) However, I do want the "or" comparison in this case. If page = "[page]" shouldn't I get results from below stating: "var does equal var name or nothing" ? [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] Donovan Scott Anderson wrote: > 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]" ! "")] -- =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/ Donovan Brooke

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: what characters are replaced for tab and CR? (1998) Authorize.Net stopped working for me (2003) RE: [WebDNA] serving multiple sites in localhost mode on OSX? (2010) WebCat2b13MacPlugIn - More limits on [include] (1997) emailer (1997) HTML encoding in URLs (1997) Help name our technology! I found it (1997) Sami (1998) Refering page (1998) Multiple fields on 1 input (1997) Writing multiple data into one field (1998) [WebDNA] Internal [ipaddress] ? (2009) Sorting error (1997) [Summary] re: Emailer setup (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Email Destination Folder Question (2004) Applescript error (1998) Cookies (1999) WebCat2b13MacPlugin - [math][date][/math] problem (1997) problems with 2 tags shakur (1997)