Re: [WebDNA] if - combining OR and AND

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101524
interpreted = N
texte = --Apple-Mail-4-282684091 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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-4-282684091 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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-4-282684091-- 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-4-282684091 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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-4-282684091 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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-4-282684091-- Thierry Almy

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:

WCS Newbie question (1997) autocommit problem (1998) passing search criteria (1997) NTbeta18 corrupted? (1997) Re[2]: Enhancement Request for WebCatalog-NT (1996) (1997) Bug? (1997) Loops N Variables (1998) filtering extra characters from credit card numbers (2001) Nesting Search Within Tag? (1997) Comments in db? (1997) RE: Formulas.db + Users.db (1997) Missing something simple?? (1998) For those annoying clients... (2003) WebCAT 3.x (2002) Squares instead of spaces (2001) 2.0Beta Command Ref (can't find this instruction) (1997) multiple file uploads (2002) flushdatabases (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)