It's not "else if" but "else" and "if"

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

It's not "else if" but "else" and "if"
[Ruby] If and else problems-with operators-
if else practice
7th class: if, else
What to do if FacesMessage is set but not displayed
About for statement and if statement
java.util.Optional class and null and not null
It's just now, but it's slimy
Java if and switch statements