Complex javascript if syntax needed.

I need to write an IF statement that looks at 2 variables X and Y.  This is how it needs to work

if X=53 AND (Y=0 OR Y=2) then do stuff otherwise dont.

In ASP, I can use () to group things together..can I do this with javascript?
Who is Participating?
RoonaanConnect With a Mentor Commented:
if(X == 53 && ( Y == 0 || Y == 2)) {
  /do stuff
electricd7Author Commented:
wow...that was quick.  I will test it out, thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.