Re: if then else. BUG?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53409
interpreted = N
texte = If page = "[page]", then the second condition of your OR statement is true,so the [then] block will get called."[page]" is not enpty.-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]Sent: Thursday, October 16, 2003 10:48 AMTo: WebDNA TalkSubject: Re: if then else. BUG?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 belowstating:"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]DonovanScott 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 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:
If page = "[page]", then the second condition of your OR statement is true,so the [then] block will get called."[page]" is not enpty.-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]Sent: Thursday, October 16, 2003 10:48 AMTo: WebDNA TalkSubject: Re: if then else. BUG?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 belowstating:"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]DonovanScott 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 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:
One more try (1997)
Ampersand (1997)
[WebDNA] Unofficial WebDna 6.2 and 7 - Mac Mavericks Installer (2014)
switching users (1998)
[WebDNA] Displaying age (2010)
WebCatalog can't find database (1997)
Multiply prices (1997)
carriage returns in data (1997)
WebCat2 - [format thousands] (1997)
WebCat2.0 [format thousands .0f] no go (1997)
MS Commerce Comparison (long) (1998)
can WC render sites out? (1997)
[delete] problem (1997)
FileInfo (2004)
Serving images from databases (1998)
nesting limits? (1998)
Virtual hosting and webcatNT (1997)
Properly coded search fails ... (2003)
WebCatalog [FoundItems] Problem - AGAIN - (1997)
I forgot (1998)