JavaScript If...Else Statements - W3Schools Online Web Tutorials
Well organized and easy to understand Web bulding tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, and XML. ... if (condition1) { block of code to be executed if condition1 is true} else if (condition2) { block of code to be ...