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:

C is for cookie - that's good enough for me... (2001) Using [sendmail] for mass mailings (2001) Potential Conflicts? (1997) More Hide IFs (2000) date display (1999) emailer on Windows Beta 18 (1997) Protect and Serve (1999) Questions about searching (1999) showif field is number (1997) about this server and links to who (1997) 2nd WebCatalog2 Feature Request (1996) Active Server Code... (1998) Bookmarked URL with cart (1998) Problems with [Search] param - Mac Plugin b15 (1997) Re:WebCatalog/WebMerchant III (1998) WC1.6 to WC2 date formatting (1997) Return records from another (1997) Emailer Question (1998) Separate SSL Server (1997) Only charge card when product shipped ? (1997)