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==.ALT Content-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- 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 --=====================_309030500==.ALT Content-Type: text/html; charset="us-ascii" 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
--=====================_309030500==.ALT-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] if - combining OR and AND (Govinda 2008)
  2. Re: [WebDNA] if - combining OR and AND (Thierry Almy 2008)
  3. Re: [WebDNA] if - combining OR and AND (Stuart Tremain 2008)
  4. Re: [WebDNA] if - combining OR and AND (Gary Krockover 2008)
  5. [WebDNA] if - combining OR and AND (Thierry Almy 2008)
--=====================_309030500==.ALT Content-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- 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 --=====================_309030500==.ALT Content-Type: text/html; charset="us-ascii" 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
--=====================_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:

[WebDNA] Amazon EC2 (2009) Looking for a Manual (1997) select multiple (1997) Thanks for tips, more quest (1997) RE: Missing contexts on NT (1997) Using WC for Bulk Emailings (1997) unable to launch acgi in WebCat (1997) Re:2nd WebCatalog2 Feature Request (1996) Sandbox scripts (2004) Repeating Fields (1997) Stats (2001) What's New In WebCatalog 3.0.7 (2000) faxing orders (2000) email program problem (1998) AuthorizeNet Declines (2005) Moment of Thanks (1997) Math Help (2000) Database of Tax Rates? (1997) Question re: FlushDatabases (1997) Extended [ConvertChars] (1997)