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 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 to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
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 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:
Logging purchases (1997)
Why is my easy [AddLineItems] NOT working?? (2000)
[WebDNA] [BULK] WebDNA 7 - Showing every other far DB - Fault! (2011)
WCS Newbie question (1997)
SiteEdit Pro Update Announcement (1997)
WebDNS and RSS (2003)
Too many database headers? (2003)
Triggers and coupons (two questions) (2003)
[WebDNA] Problem with Cookies in IE and Safari (2009)
Help name our technology! (1997)
orderfile location (1999)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
en/decrypt problem (1999)
Sku numbers (1997)
multiple search commands (1997)
I think WebDNA-Talk died ... :( (1997)
WebCatalog NT beta 18 problem (1997)
Clearing orders and database help! (1997)
Client-side Image Maps and WebCat? (1998)
Emailer (1997)