Depending on the language, there is also an else if, but what is called "else if" is an ultra-small story that the processing to be executed at the time of else is if.
Even though I wrote in the coding standard that "if and else must be enclosed in {}", else and if are also included in the coding standard ...
if (/*conditions*/) {
//Abbreviation
} else if (/*conditions*/) {
//Abbreviation
}
If it is written like this, I think "I don't know this guy".
Recommended Posts