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:
can WC render sites out? (1997)
[searchString] (1997)
[WebDNA] Seriously what is wrong here? (2011)
Pass a form (2003)
FM PRO Compatibility Issue - Single Database w/o Conversions (1997)
cc auth with [purchase] (1998)
Creating folders and deleting files (1997)
Using Plug-In while running 1.6.1 (1997)
Trouble with Netscape (1998)
Truncated Sendmail (1998)
texta,b,c,d,e (urgent) (2003)
PIXO support (1997)
WebCat2 beta 11 - new prefs ... (1997)
Changing path of links... (2000)
Multiple price fields (2000)
Help! WebCat2 bug (1997)
SET (1998)
Wanted: Broader string manipulation functions (1997)
Upgrading old WebCat Database Files (1997)
SSL Config for Webten on Mac (1998)