Re: [WebDNA] if - combining OR and AND
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101524
interpreted = N
texte = --Apple-Mail-4-282684091Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitYes it works!Men, have I been stupid! For a certain reason I was sure it won't work ... dunno why ... so I always programmed around it ...ThanksThierry> Why can't you write it as you have it in the first example? Did you > test, it should work->> GJK>> At 06:49 AM 11/24/2008, you wrote:>> is there a way to combine OR and AND comparisations within one>> definition?>>>> wanted:>>>> [if ("a"="a") | (("a"="b") & ("b"="b"))]>> [then]>> yes>> [/then]>> [/if]>>>>>> with the code I know I'd need to write:>>>> [if ("a"="a")]>> [then]>> yes>> [/then]>> [else]>> [if ("a"="b") & ("b"="b")]>> [then]>> yes>> [/then]>> [/if]>> [/else]>> [/if>>>>>> Thierry--Apple-Mail-4-282684091Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableYes it works!
Men, have I been stupid! =For a certain reason I was sure it won't work ... dunno why ... so I =always programmed around it ...
Thanks
Thierry
=
Why can't you write it as you have it in the first =example? Did you test, it should work-
GJK
At =06:49 AM 11/24/2008, you wrote:
is there a way to combine OR =and AND comparisations within one
definition?
=wanted:
[if ("a"=3D"a") | (("a"=3D"b") & ("b"=3D"b"))]
=[then]
yes
[/then]
[/if]
with the code I know =I'd need to write:
[if ("a"=3D"a")]
[then]
yes
=[/then]
[else]
= [if =("a"=3D"b") & ("b"=3D"b")]
= [then]
= yes
= [/then]
= = [/if]
=[/else]
[/if
Thierry
=
=--Apple-Mail-4-282684091--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-4-282684091Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitYes it works!Men, have I been stupid! For a certain reason I was sure it won't work ... dunno why ... so I always programmed around it ...ThanksThierry> Why can't you write it as you have it in the first example? Did you > test, it should work->> GJK>> At 06:49 AM 11/24/2008, you wrote:>> is there a way to combine OR and AND comparisations within one>> definition?>>>> wanted:>>>> [if ("a"="a") | (("a"="b") & ("b"="b"))]>> [then]>> yes>> [/then]>> [/if]>>>>>> with the code I know I'd need to write:>>>> [if ("a"="a")]>> [then]>> yes>> [/then]>> [else]>> [if ("a"="b") & ("b"="b")]>> [then]>> yes>> [/then]>> [/if]>> [/else]>> [/if>>>>>> Thierry--Apple-Mail-4-282684091Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableYes it works!
Men, have I been stupid! =For a certain reason I was sure it won't work ... dunno why ... so I =always programmed around it ...
Thanks
Thierry
=
Why can't you write it as you have it in the first =example? Did you test, it should work-
GJK
At =06:49 AM 11/24/2008, you wrote:
is there a way to combine OR =and AND comparisations within one
definition?
=wanted:
[if ("a"=3D"a") | (("a"=3D"b") & ("b"=3D"b"))]
=[then]
yes
[/then]
[/if]
with the code I know =I'd need to write:
[if ("a"=3D"a")]
[then]
yes
=[/then]
[else]
= [if =("a"=3D"b") & ("b"=3D"b")]
= [then]
= yes
= [/then]
= = [/if]
=[/else]
[/if
Thierry
=
=--Apple-Mail-4-282684091--
Thierry Almy
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:
syntax question, not in online refernce (1997)
emailer on Windows Beta 18 (1997)
WC Database Format (1997)
Re:redirect from the errorsMessages.db entry (1997)
no global [username] or [password] displayed ... (1997)
[cart] Taxrate - seriously .. (2002)
AOL displays strange header info (2000)
RE: boldwords funky (1998)
Show shoppingcart after remove last item (1997)
SSL, WebSTAR, WebCatalog (1998)
[object] Tag & WebDNA Support (2005)
WebCat2.0 [format thousands .0f] no go (1997)
iis 4.0 (1997)
Strange intermittent WebDNA problems (2008)
Nested tags count question (1997)
[platform] tag? (1998)
WebCat2b13MacPlugIn - syntax to convert date (1997)
WebCat2 - [format thousands] (1997)
Multiple cart additions (1997)
Just Testing (1997)