Change 'else if' to 'elsif'