This is simple:
if(condition) {
/* do something if condition is true */
}
else {
/* do something else if condition is false */
}
/* do other stuff either way */
You only need the else
if there is something that you want to do only if the condition is false. If you want to do it either way, then don't use else
at all.