Hi Guys,
is this right to use two values in an if statement in javascript?
if((valueA > 2) (valueB < valueC)){
}
Thanks guys and sorry for the newbie question… :)[/code]
Hi Guys,
is this right to use two values in an if statement in javascript?
if((valueA > 2) (valueB < valueC)){
}
Thanks guys and sorry for the newbie question… :)[/code]
I think so.
It certainly is.
You could leave out some parentheses if you wanted.
if (valueA > 2 valueB < valueC)