if...else Statement (JavaScript)
JavaScript - Internet Explorer 10
Conditionally executes a group of statements, depending on the value of an expression.
if (condition1) {
statement1
}
[else if (condition2) {
statement2
}]
[else {
statement3]
}]
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards. Also supported in Windows Store apps. See Version Information.