![]() |
syntactic unit > statement > control flow statement > decision making statement > if statement > nested if statement |
![]() ![]() | ||||
nested if statement | ||||
subject | fact |
nested if statement | has example if (operation == '+') | ![]() |
is a subtopic of Loops and Decision Making | ![]() | |
is a kind of if statement | ![]() | |
may contain an if statement or an if-else statement as its embedded statement | ![]() | |
if statement | can omit braces if there is only one embedded statement | ![]() |
has part boolean expression | ![]() | |
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 | ![]() |