=?ISO-8859-1?Q?R=E9p_:_[WebDNA]_[showif]_problem_*solved*?=

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101831
interpreted = N
texte = --Apple-Mail-1--702503848 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed eh eh... dead easy.. thanks Using it for ages, I even did'nt thought to go to the manual... Le 28 janv. 09 =E0 15:48, Gil Poulsen a =E9crit : > Hi, Lawrence. This is from the docs for [ShowIf]: > > =3D=3D=3D=3D=3D=3D=3D=3D > Tip: make sure neither side of the comparison equation contains any =20= > of the special comparison letters listed above. For example, =20 > [ShowIf I'm Friendly! Are you?=3D[question]] contains an exclamation =20= > point inside the sentence being compared, so WebDNA sees this as =20 > "I'm Friendly" is not equal to " Are you?=3D[question]", which is not =20= > what the author meant to compare. > > The solution is to wrap each side of the comparison with [URL] =20 > contexts, like this: > [ShowIf [URL]I'm Friendly! Are you?[/URL]=3D[URL][question][/URL]]. =20= > This causes any embedded !=3D>< symbols to be converted to their URL =20= > equivalents, which can then be compared correctly. > =3D=3D=3D=3D=3D=3D=3D=3D > > Once in a thousand years or so a question is posted that I actually =20= > know the answer to ;-) > > > On Jan 28, 2009, at 9:44 AM, Lawrence wrote: > > >> Hello, >> >> I just have a problem I never noticed. >> I use the "classical" showif , hideif to display a result =20 >> depending on what the field contains. >> [showif [myfiled]=3D[blank]] RESULT[/showif] >> This is absolutely simple, except that is the filed [myfiled] =20 >> contains the caracter "!", nothing will be displayed... >> >> Has any one had this problem? How can it be solved? >> >> Thanks >> Lawrence >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> >> > > -- > Gil Poulsen, Mac Wirehead > > ************************ > AltiM@c Consulting > 23 Marco Polo Court > Franklin Park, NJ 08823-1703 > Voice: 609-359-0103 > http://altimac.com > ************************ > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > --Apple-Mail-1--702503848 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
eh eh... dead = easy.. thanks
Using it for ages, I even did'nt thought = to go to the manual...


Le 28 janv. = 09 =E0 15:48, Gil Poulsen a =E9crit :


Hi, Lawrence. This is from the docs for = [ShowIf]:

=3D=3D=3D=3D=3D=3D=3D=3D
Tip: make sure neither side of the comparison equation = contains any of the special comparison letters listed above. For = example, [ShowIf I'm Friendly! Are you?=3D[question]] contains an = exclamation point inside the sentence being compared, so WebDNA sees = this as "I'm Friendly" is not equal to " Are you?=3D[question]", which = is not what the author meant to compare.

The solution = is to wrap each side of the comparison with [URL] contexts, like = this:
[ShowIf [URL]I'm Friendly! Are = you?[/URL]=3D[URL][question][/URL]]. This causes any embedded !=3D><= symbols to be converted to their URL equivalents, which can then be = compared correctly.
=3D=3D=3D=3D=3D=3D=3D=3D

Once in a thousand years or so a question = is posted that I actually know the answer to=A0 ;-)


On Jan 28, 2009, at 9:44 AM, Lawrence = wrote:


Hello,

I just have a = problem I never noticed.
I use the = "classical" showif , hideif to display a result depending on what the = field contains.
[showif [myfiled]=3D[blank]] = RESULT[/showif]
This is absolutely simple, = except that is the filed [myfiled] contains the caracter "!", nothing = will be displayed...

Has any one had this problem? How can it be = solved?

Thanks
Lawrence

---------------------------------------------------------<= /div>
This message is sent to you because you are subscribed = to
the mailing list <talk@webdna.us>.

--
Gil Poulsen, = Mac Wirehead

************************
AltiM@c Consulting
23 Marco Polo = Court
Franklin Park, NJ = 08823-1703
Voice: 609-359-0103
************************


---------------------------------------------------------<= /div>
This message is sent to you because you are subscribed = to
the mailing list <talk@webdna.us>.

= --Apple-Mail-1--702503848-- Associated Messages, from the most recent to the oldest:

    
  1. =?ISO-8859-1?Q?R=E9p_:_[WebDNA]_[showif]_problem_*solved*?= (Lawrence Banahan 2009)
--Apple-Mail-1--702503848 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed eh eh... dead easy.. thanks Using it for ages, I even did'nt thought to go to the manual... Le 28 janv. 09 =E0 15:48, Gil Poulsen a =E9crit : > Hi, Lawrence. This is from the docs for [showif]: > > =3D=3D=3D=3D=3D=3D=3D=3D > Tip: make sure neither side of the comparison equation contains any =20= > of the special comparison letters listed above. For example, =20 > [ShowIf I'm Friendly! Are you?=3D[question]] contains an exclamation =20= > point inside the sentence being compared, so WebDNA sees this as =20 > "I'm Friendly" is not equal to " Are you?=3D[question]", which is not =20= > what the author meant to compare. > > The solution is to wrap each side of the comparison with [url] =20 > contexts, like this: > [ShowIf [url]I'm Friendly! Are you?[/URL]=3D[url][question][/URL]]. =20= > This causes any embedded !=3D>< symbols to be converted to their URL =20= > equivalents, which can then be compared correctly. > =3D=3D=3D=3D=3D=3D=3D=3D > > Once in a thousand years or so a question is posted that I actually =20= > know the answer to ;-) > > > On Jan 28, 2009, at 9:44 AM, Lawrence wrote: > > >> Hello, >> >> I just have a problem I never noticed. >> I use the "classical" showif , hideif to display a result =20 >> depending on what the field contains. >> [showif [myfiled]=3D[blank]] RESULT[/showif] >> This is absolutely simple, except that is the filed [myfiled] =20 >> contains the caracter "!", nothing will be displayed... >> >> Has any one had this problem? How can it be solved? >> >> Thanks >> Lawrence >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> >> > > -- > Gil Poulsen, Mac Wirehead > > ************************ > AltiM@c Consulting > 23 Marco Polo Court > Franklin Park, NJ 08823-1703 > Voice: 609-359-0103 > http://altimac.com > ************************ > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > --Apple-Mail-1--702503848 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
eh eh... dead = easy.. thanks
Using it for ages, I even did'nt thought = to go to the manual...


Le 28 janv. = 09 =E0 15:48, Gil Poulsen a =E9crit :


Hi, Lawrence. This is from the docs for = [showif]:

=3D=3D=3D=3D=3D=3D=3D=3D
Tip: make sure neither side of the comparison equation = contains any of the special comparison letters listed above. For = example, [ShowIf I'm Friendly! Are you?=3D[question]] contains an = exclamation point inside the sentence being compared, so WebDNA sees = this as "I'm Friendly" is not equal to " Are you?=3D[question]", which = is not what the author meant to compare.

The solution = is to wrap each side of the comparison with [url] contexts, like = this:
[ShowIf [url]I'm Friendly! Are = you?[/URL]=3D[url][question][/URL]]. This causes any embedded !=3D><= symbols to be converted to their URL equivalents, which can then be = compared correctly.
=3D=3D=3D=3D=3D=3D=3D=3D

Once in a thousand years or so a question = is posted that I actually know the answer to=A0 ;-)


On Jan 28, 2009, at 9:44 AM, Lawrence = wrote:


Hello,

I just have a = problem I never noticed.
I use the = "classical" showif , hideif to display a result depending on what the = field contains.
[showif [myfiled]=3D[blank]] = RESULT[/showif]
This is absolutely simple, = except that is the filed [myfiled] contains the caracter "!", nothing = will be displayed...

Has any one had this problem? How can it be = solved?

Thanks
Lawrence

---------------------------------------------------------<= /div>
This message is sent to you because you are subscribed = to
the mailing list <talk@webdna.us>.

--
Gil Poulsen, = Mac Wirehead

************************
AltiM@c Consulting
23 Marco Polo = Court
Franklin Park, NJ = 08823-1703
Voice: 609-359-0103
************************


---------------------------------------------------------<= /div>
This message is sent to you because you are subscribed = to
the mailing list <talk@webdna.us>.

= --Apple-Mail-1--702503848-- Lawrence Banahan

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:

My first ship table (1998) Database Advice (1996) RED QUESTION MARK (1999) RE: Error: template (1997) Searching multiple Databases (1997) So when do we get something similar? (1998) WebCat2 - [format thousands] (1997) SETCOOKIE Tricks (2003) Substitutes for [text]? (2000) RE: Re:Signal Raised (1997) WebCat2 Append problem (B14Macacgi) (1997) WebCat2: Items xx to xx shown, etc. (1997) RE: 2nd WebCatalog2 Feature Request (1996) WebCatalog2 Feature Feedback (1996) New syntax feedback for 4.0 (2000) WebCat2b15MacPlugin - showing [math] (1997) upgrading (1997) Quick ShowIf question (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) WebCat2final1 crashes (1997)