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:

ListWords passing multi values in one form field (2000) group searching problem (2002) [WebDNA] Converting minutes to hours (2008) Search design (1997) Help! WebCat2 bug (1997) Request for quote (2000) no global [username] or [password] displayed ... (1997) Search wbrk word break param (1998) Configuring E-mail (1997) can WC render sites out? (1997) Not really WebCat (1997) Re2: frames & carts (1997) Location of Webcat site in folder hierarchy (1997) Why did this copyfile stop working? (2004) Initiating NewCart (1997) A question on sub-categories (1997) Country & Ship-to address & other fields ? (1997) Gil's in the lead (1999) AddLineitems - 100 Item Limit? (2002) Nested search (1997)