# How to make a proper “if, else if” statement in Swift?

What I’ve been doing (since I don’t know the proper way):

if condition {
(code)
}
if condition {
(code)
}


How do you make an if-else statement?

What I’ve tried:

if condition {
(code)
} else if condition {
(code)
}


First, I should say that I personally do not use Swift, but it says something on this website.

nvm, wrong thing.