![]() |
syntactic unit > statement > control flow statement > decision making statement > if-else statement > nested if-else statement |
![]() ![]() | ||||
nested if-else statement | ||||
subject | fact |
nested if-else statement | has example if (length < 10) { | ![]() |
is a subtopic of Loops and Decision Making | ![]() | |
is a kind of if-else statement | ![]() | |
may contain an if statement or an if-else statement as its embedded statements | ![]() | |
if-else statement | can omit braces if there is only one embedded statement | ![]() |
has part else block | ![]() | |
has syntax if (boolean expression) { | ![]() | |
decision making statement | has purpose to make a decision on which branch of code to follow in a program | ![]() |
statement | is terminated by a semicolon ![]() | ![]() |
should be not more than one line long if possible | ![]() | |
syntactic unit | has syntax rule bold = mandatory | ![]() |