Is it possible to put 'AND' in an 'IF' Statament (HTML)?

Hi guys, I was wondering if I could have multiple variables in an 'IF statement, example:

"if (this.value == 'whatever')AND(type == 'text')

Thats basically what I want to achieve, though I know the coding is wrong. I simply can't remember how to do it...GRRR lol. Thanks for the help
 
Back
Top