| Author |
javaScript "AND" in a dBase wrapper
|
|
| Claus Mygind 2006-11-07, 7:13 pm |
| Is there a workaround for putting an "AND" condition in a javaScript
function
javaScript calls for the following syntax
if ( ( 1==1) && (2==2) ) {
do this
}
But when you put that in a dBase wrapper to stream out to an html page like
this:
puts[ if ( ( 1==1 ) && ( 2==2 ) ) { ]
the content after the && is commented out.
I guess one way would be to just create a nested if condition taking them
one at a time, but there must be a better way?
| |
| Ivar B. Jessen 2006-11-07, 7:13 pm |
| On Mon, 6 Nov 2006 10:33:24 -0600, in dbase.internet,
Subject: javaScript "AND" in a dBase wrapper,
Message-ID: <vnD9#GcAHHA.880@news-server>,
"Claus Mygind" <cmygind@tsccorp.com> wrote:
>I guess one way would be to just create a nested if condition taking them
>one at a time, but there must be a better way?
>
See my reply in the dbaseTalk group.
Ivar B. Jessen
| |
| Silvio Genco 2006-11-07, 7:13 pm |
| Have you tried:
puts[ if ( ( 1==1 )]+[&]+[&]+[ ( 2==2 ) ) { ]
Silvio
"Claus Mygind" <cmygind@tsccorp.com> ha scritto nel messaggio
news:vnD9%23GcAHHA.880@news-server...
> Is there a workaround for putting an "AND" condition in a javaScript
> function
>
> javaScript calls for the following syntax
>
> if ( ( 1==1) && (2==2) ) {
> do this
> }
>
> But when you put that in a dBase wrapper to stream out to an html page
like
> this:
>
> puts[ if ( ( 1==1 ) && ( 2==2 ) ) { ]
>
> the content after the && is commented out.
>
> I guess one way would be to just create a nested if condition taking them
> one at a time, but there must be a better way?
>
>
>
| |
| Claus Mygind 2006-11-10, 7:16 pm |
| No actually not because I got Ivar's solution to work. But it does look a
little simpler. I'll have to give it a try.
"Silvio Genco" <nospamgenco@medidea.it> wrote in message
news:BX2hNAdAHHA.1136@news-server...
> Have you tried:
>
> puts[ if ( ( 1==1 )]+[&]+[&]+[ ( 2==2 ) ) { ]
>
> Silvio
>
> "Claus Mygind" <cmygind@tsccorp.com> ha scritto nel messaggio
> news:vnD9%23GcAHHA.880@news-server...
> like
>
>
|
|
|
|