Re: Unexpected comparison behavior change in 4.5.1
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48707
interpreted = N
texte = Maybe this is a fix rather than a bug... A value can equal blank, but can anon-blank value contain a blank? I wouldn't think so. That would be mythinking anyway.Tim> From: Brian Fries
> Reply-To: (WebDNA Talk)> Date: Sat, 15 Mar 2003 00:30:40 -0800> To: (WebDNA Talk)> Subject: Unexpected comparison behavior change in 4.5.1> > Running WebDNA 4.5.1 on OSX, I'm finding an unexpected and undesirable> change in the behavior of IF and SHOWIF contains comparisons when the> value being tested for is blank.> > I ran this code on three servers - OSX / 4.5.0, OS9 / 4.0.2 and OSX /> 4.5.1:> > [showif bob^]yes[/showif][hideif bob^]no[/hideif]
> [if bob^][then]yo[/then][else]nah[/else][/if]
> > On both the 4.5.0 and 4.0.2 systems, it returns:> yes> yo> > On the 4.5.1 system, it returns:> no> nah> > > Can I get confirmation from SMSI and/or other users that this is a bug> introduced in 4.5.1?> > - brian> > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/> -------------------------------------------------------------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:
Maybe this is a fix rather than a bug... A value can equal blank, but can anon-blank value contain a blank? I wouldn't think so. That would be mythinking anyway.Tim> From: Brian Fries > Reply-To: (WebDNA Talk)> Date: Sat, 15 Mar 2003 00:30:40 -0800> To: (WebDNA Talk)> Subject: Unexpected comparison behavior change in 4.5.1> > Running WebDNA 4.5.1 on OSX, I'm finding an unexpected and undesirable> change in the behavior of IF and SHOWIF contains comparisons when the> value being tested for is blank.> > I ran this code on three servers - OSX / 4.5.0, OS9 / 4.0.2 and OSX /> 4.5.1:> > [showif bob^]yes[/showif][hideif bob^]no[/hideif]
> [if bob^][then]yo[/then][else]nah[/else][/if]
> > On both the 4.5.0 and 4.0.2 systems, it returns:> yes> yo> > On the 4.5.1 system, it returns:> no> nah> > > Can I get confirmation from SMSI and/or other users that this is a bug> introduced in 4.5.1?> > - brian> > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/> -------------------------------------------------------------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/
Tim Robinson
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:
Trouble with formula.db (1997)
Sort Order on a page search (1997)
PHP vs WebDNA question --calling all php gurus (2004)
Combining Searches (1998)
I'm tired of all this! (2000)
UPS Online (2004)
Can't load tmpl files (1997)
Frames and WebCat (1997)
[WebDNA] can webdna set the email header (w/[sendmail]) that (2012)
if else problem (2003)
setitems, one more thing (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
question: search return in order (1997)
[WebDNA] XML Help please (2009)
Problem displaying search result (1997)
Re[2]: POSTing to a secure server ... (2000)
Thanks Grant (1997)
HTTP upload (2000)
Setting up shop (1997)
Problems with [Search] param - Mac Plugin b15 (1997)