Conditional else if statement with 3 or more blocks of code