Re: [WebDNA] if - combining OR and AND
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101525
interpreted = N
texte = --Apple-Mail-5-296807790Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitI did the same thing Thierry. I also don't know why... just ass-u- med based on doc examples, or something...Thank you for drawing this out.-GOn Nov 26, 2008, at 4:13 AM, Thierry Almy wrote:> Yes 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"="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-5-296807790Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableI did the same thing Thierry. = I also don't know why... just ass-u-med based on doc =examples, or something...
Thank you for drawing this =out.
-G
On Nov 26, 2008, at 4:13 AM, Thierry Almy =wrote:
Yes 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-5-296807790--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-5-296807790Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitI did the same thing Thierry. I also don't know why... just ass-u- med based on doc examples, or something...Thank you for drawing this out.-GOn Nov 26, 2008, at 4:13 AM, Thierry Almy wrote:> Yes 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"="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-5-296807790Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableI did the same thing Thierry. = I also don't know why... just ass-u-med based on doc =examples, or something...
Thank you for drawing this =out.
-G
On Nov 26, 2008, at 4:13 AM, Thierry Almy =wrote:
Yes 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-5-296807790--
Govinda
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:
Price + Texte (1999)
Bug or syntax error on my part? (1997)
[OT] Cisco Router (2003)
More to Expire (1998)
Adding Text (2000)
Cross-platform file locations? (2000)
WebCat2b15MacPlugin - showing [math] (1997)
2.1b3 --> way slow (1997)
Copyright ? (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Case statement (2003)
Bug Report, maybe (1997)
using showpage and showcart commands (1996)
webcatalog 2.1.3 ACGI Weirdness? (1998)
WebCatalog for Mac 2.0.1 Released (1997)
Running _every_ page through WebCat-error.html (1997)
off topic - dna snipets (1997)
Putting a page between checkout and invoice (1999)
select multiple (1997)
[INCLUDE] Limitations (1998)