Re: [WebDNA] if - combining OR and AND
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101522
interpreted = N
texte = --=====================_309030500==.ALTContent-Type: text/plain; charset="us-ascii"Why can't you write it as you have it in the first example? Did you test, it should work-GJKAt 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--=====================_309030500==.ALTContent-Type: text/html; charset="us-ascii"
Why can't you write it as you have it in the firstexample? Did you test, it should work-
GJK
At 06:49 AM 11/24/2008, you wrote:
is there a way to combine OR andAND 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
--=====================_309030500==.ALT--
Associated Messages, from the most recent to the oldest:
--=====================_309030500==.ALTContent-Type: text/plain; charset="us-ascii"Why can't you write it as you have it in the first example? Did you test, it should work-GJKAt 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--=====================_309030500==.ALTContent-Type: text/html; charset="us-ascii"
Why can't you write it as you have it in the firstexample? Did you test, it should work-
GJK
At 06:49 AM 11/24/2008, you wrote:
is there a way to combine OR andAND 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
--=====================_309030500==.ALT--
Gary Krockover
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:
New NT beta available (1997)
WebCat 4 crashes WebStar / Shownext Links (2001)
Ok here is a question? (1997)
shownext & math (1997)
[isfile] ? (1997)
Separate SSL Server (1997)
WebSite and *NO* Authentication Dialog Box!!? (1998)
Unexpected error (1997)
Need some Java Script Code (2003)
weiered lookup (2004)
Smart caching problems with 2.1b3? (1997)
[WAY OFF TOPIC] anybody live in Kansas? (2003)
Execute Applescript (1997)
Help! WebCat2 bug (1997)
Allowed fields in formulas.db (1998)
Auto entering Friday's date in a field (2002)
Visitor info (2000)
Img in goodpath (2001)
WebCat table size. (2001)
SSL and reg web* (1997)