
January 21st, 2013, 06:11 PM
|
 |
Contributing User
|
|
|
|
|
Conditional operator help
I am having a tough time understanding this "simple" conditional: Quote:
if ((row != 3) && (i != 9)) {
alert('row is not 3 and i is not 9 ');
} else
alert('row: ' + row + ', i: ' + i); |
When variable row equals to 3 and no matter what value variable i is then the if statement is not true.
The way I understand this I should get alert('row is not 3 and i is not 9 ') ONLY id row is 3 and variable i is nine.
HELP!
__________________
Evan
|