0
5
llucycodes42
The if statement checks the condition and if true, the code inside the if block is executed. If the condition is not true, the code inside the elseif condition is executed. If the condition is still not true, the code inside the else block is executed.
Shortcut: ifelseif
if (cond) {
} elseif(cond) {
} else {
}