Mega Code Archive

 
Categories / JavaScript DHTML / Language Basics
 

Nested Indented Conditional statements

<html> <head> <title>Nested Indented Conditional statements</title> <script type="text/javascript"> var prefChoice = 1; var stateChoice = 'R'; var genderChoice = 'F'; if (prefChoice == 1) {    if (stateChoice == 'R') {       if (genderChoice == 'M') {          document.write("...");       }    } }  </script> </head> <body> </body> </html>