if (condition) { if (anotherCondition) { // executes if both condition and anotherCondition are true } else { // executes if condition is true and anotherCondition is false } } else { // executes if condition is false }