Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

nested if statement

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
}
 
PREVIOUS NEXT
Tagged: #nested #statement
ADD COMMENT
Topic
Name
3+3 =