Nested Conditions

if (condition1)
{
    if (condition2)
        // body; 
    else
        // body;
}
Remember that it is not a good practice to write **deeply nested conditional statements** (with more than three levels of nesting). Aviod nesting of more than three conditional statements inside one another. This complicates the code and makes its reading and understanding difficult.

results matching ""

    No results matching ""