Click to See Complete Forum and Search --> : Help with IF statements


Will192
01-02-2003, 03:16 PM
(Javascript/ASP) Are these two conditions the same?

(A=='EWP' && B>0 || A=='EWN' && B>0)

((A=='EWP' && B>0) || (A=='EWN' && B>0))


I think that the second condition will error out. How do I write this condition in the IF statement?

swon
01-02-2003, 03:27 PM
For example:

if(B>0){
if(A=="EWP" || A=="EWN"){
alert("this is true");
}
}