if (condition) { code to be executed if this condition is true; } elseif (condition) { // code to be executed if first condition is // false and this condition is true; } else { // code to be executed if all conditions are // false; }