Conditional Statements Flashcards
1
Q
if statement structure
A
if (condition) {
what to do if condition is true
}
2
Q
if else statement structure
A
if (condition) {
what to do if condition is true
} else {
what to do if condition is false
}
3
Q
else if statement structure
A
if (condition) {
what to do if true
} else if (condition){
what to do
} else if (condition){
what to do
}
4
Q
which conditional statement is for only 1 option
A
if statement
5
Q
what conditional statement is for 2 options
A
if else statement
6
Q
what conditional statement if for more than 2 options
A
else if statement