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:
Version f1 status (1997)
2.1 bugs left over from beta cycle (1998)
OT:looking for developers with solutions (2000)
More than one db with the same namn (was: WC2f3) (1997)
Almost a there but..bye bye NetCloak (1997)
More NT encyption!! (1999)
can webcat create directories on NT? (1997)
ShowNext Command (1997)
Summing fields (1997)
AddLineItem Problem (1997)
WC2b12: Yes, Formulas.db is for real (1997)
WCS Newbie question (1997)
Thanks ! (1997)
[Sum] function? (1997)
really wierd browser truncating (1997)
Wrong? (1999)
New syntax feedback for 4.0 (2000)
Replace context problem ... and answers (1997)
NetCloak as Emailer substitute? (1999)
Interpret Around Contexts? (2000)