Click to See Complete Forum and Search --> : Conditional statement


Nimisha
05-06-2003, 02:33 AM
Hi guys

I farirly new to jscript and the ques may seem dumb. My syntax is as follows
if (bOK == true && document.frmMoveEvent.cmbImpVer.value=="" && document.frmMoveEvent.cmbStage.value=="Code Review")
{
alert ("Testing");
bOK=false;
}

I need an alert to pop up if the conditions are not met. But
Nothing seems to happen when I run this code. Any clues
Ta
Nimisha

gil davis
05-06-2003, 05:59 AM
Possibly, not enough parentheses.
if ((bOK) && (document.frmMoveEvent.cmbImpVer.value=="") && (document.frmMoveEvent.cmbStage.value=="Code Review"))

Nimisha
05-06-2003, 06:17 AM
Hi

Sorted it..ta. Thanx for the reply.

Ta
Nimisha