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:
Looking up two prices in database? (1997)
Configuring E-mail (1997)
session handling (2004)
Large founditems loops (2000)
Searching an Email database (1997)
free "Image Viewer" widget (2004)
Shipping charges depending on tax rate? (1997)
New Site Announcement (1998)
Banners (1997)
More NT encyption!! (1999)
all records returned. (1997)
How To question on setting up downloads (1997)
thread7715.debug (1999)
[BoldWords] WebCat.acgib15Mac (1997)
Writing [raw] to a file (2000)
Extended [ConvertChars] (1997)
This list needs a digest: rant, rave... (1997)
Summing fields (1997)
Help! WebCat2 bug (1997)
taxRate is fine but taxTotal isn't (1997)