Re: Unexpected comparison behavior change in 4.5.1
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48708
interpreted = N
texte = I tend to agree here .. the correct way to check if a variable contains/doesnot contain something[showif [url][variable][/url]=] .....[showif [url][variable][/url]!]....Alain----- Original Message -----From: Tim Robinson
To: WebDNA Talk Sent: Saturday, March 15, 2003 11:26 PMSubject: Re: Unexpected comparison behavior change in 4.5.1> Maybe this is a fix rather than a bug... A value can equal blank, but cana> non-blank value contain a blank? I wouldn't think so. That would be my> thinking 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/>-------------------------------------------------------------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:
I tend to agree here .. the correct way to check if a variable contains/doesnot contain something[showif [url][variable][/url]=] .....[showif [url][variable][/url]!]....Alain----- Original Message -----From: Tim Robinson To: WebDNA Talk Sent: Saturday, March 15, 2003 11:26 PMSubject: Re: Unexpected comparison behavior change in 4.5.1> Maybe this is a fix rather than a bug... A value can equal blank, but cana> non-blank value contain a blank? I wouldn't think so. That would be my> thinking 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/>-------------------------------------------------------------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/
Alain Russell
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:
HTML Editors (1997)
More than one db with the same namn (was: WC2f3) (1997)
Initiating NewCart (1997)
preserving the zero's (1999)
webCatalog and Stocks (1998)
[WebDNA] Can WebDNA corrupt a db? (2012)
unable to launch acgi in WebCat (1997)
[OT] Am I an Idiot? (2004)
Editor Recommendation for NT Users (1998)
RE: Discounting prices across a site (1997)
Banner DNA (1997)
WebCat2 beta 11 - new prefs ... (1997)
FoundItems Question (1998)
[WebDNA] parsing xml (2010)
Can't load tmpl files (1997)
[OT] Indexing of dynamic web sites (2003)
[WebDNA] Is a '.webdna' suffix better? (2008)
re:check boxes (1997)
Misc Stuff That Might Help (1997)
Online reference (1997)