Re: [WebDNA] if - combining OR and AND

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101525
interpreted = N
texte = --Apple-Mail-5-296807790 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I did the same thing Thierry. I also don't know why... just ass-u- med based on doc examples, or something... Thank you for drawing this out. -G On Nov 26, 2008, at 4:13 AM, Thierry Almy wrote: > Yes it works! > Men, have I been stupid! For a certain reason I was sure it won't > work ... dunno why ... so I always programmed around it ... > Thanks > Thierry > >> 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 > --Apple-Mail-5-296807790 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I did the same thing Thierry. =  I also don't know why...  just ass-u-med based on doc = examples, or something...
Thank you for drawing this = out.
-G
On Nov 26, 2008, at 4:13 AM, Thierry Almy = wrote:

Yes it works!
Men, have I been stupid! =For a certain reason I was sure it won't work ... dunno why ... so I =always programmed around it ...
Thanks
Thierry

= 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"=3D"a") | (("a"=3D"b") & ("b"=3D"b"))]
= [then]
yes
[/then]
[/if]


with the code I know = I'd need to write:

[if ("a"=3D"a")]
[then]
yes
= [/then]
[else]
=         [if = ("a"=3D"b") & ("b"=3D"b")]
=         [then]
=         yes
=         [/then]
= =         [/if]
= [/else]
[/if


Thierry
=


= --Apple-Mail-5-296807790-- 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)
--Apple-Mail-5-296807790 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I did the same thing Thierry. I also don't know why... just ass-u- med based on doc examples, or something... Thank you for drawing this out. -G On Nov 26, 2008, at 4:13 AM, Thierry Almy wrote: > Yes it works! > Men, have I been stupid! For a certain reason I was sure it won't > work ... dunno why ... so I always programmed around it ... > Thanks > Thierry > >> 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 > --Apple-Mail-5-296807790 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I did the same thing Thierry. =  I also don't know why...  just ass-u-med based on doc = examples, or something...
Thank you for drawing this = out.
-G
On Nov 26, 2008, at 4:13 AM, Thierry Almy = wrote:

Yes it works!
Men, have I been stupid! =For a certain reason I was sure it won't work ... dunno why ... so I =always programmed around it ...
Thanks
Thierry

= 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"=3D"a") | (("a"=3D"b") & ("b"=3D"b"))]
= [then]
yes
[/then]
[/if]


with the code I know = I'd need to write:

[if ("a"=3D"a")]
[then]
yes
= [/then]
[else]
=         [if = ("a"=3D"b") & ("b"=3D"b")]
=         [then]
=         yes
=         [/then]
= =         [/if]
= [/else]
[/if


Thierry
=


= --Apple-Mail-5-296807790-- Govinda

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:

The Mysterious '<' (1998) Creating main- and sub-category search (1997) WebDNA Solutions ... sorry! (1997) SiteGaurd file Cache vs webcatalog cache (1997) For those of you not on the WebCatalog Beta... (1997) OT: Sending email to lots of subscribers (1999) download a file (2001) adding item to cart question (1998) E-Mail Preferences in Admin Folder (1997) webcatalog developers in W. Pa. (1998) [WebDNA] Seriously what is wrong here? (2011) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Quit revisited (1997) Online reference (1997) WebCat2b13 Command Reference Doc error (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) [SearchString] usage (1997) Re:2nd WebCatalog2 Feature Request (1996) emailer settings and control questions (1997) CommandSecurity? (1997)