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] Sorry WebDNA server not running. (2017) Using Plug-In while running 1.6.1 (1997) no [search] with NT (1997) Num Sort Descending (OT) (2004) Trigger Bug? (2000) ReturnRaw and redirect (1997) Signal Raised (1997) WCS Newbie question (1997) Setting up shop (1997) Trouble with Netscape (1998) Typhoon Rev. and PCS store problems (1999) RE: Deafness (1998) [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (2000) Text Variabels Not Passed To Include (2002) customizing the color of user's pages (1997) More Applescript (1997) Download (1999) WebCatalog for guestbook ? (1997) Re:F*** you (1998) Expiration of Carts (1997)