Hello! I’m working my way through the Choose Your Own Adventure project on c sharp. I keep getting error messages when I try to create else-if statements and use curly brackets. {} Any advice as to why this keeps happening, when it doesn’t happen in the walk through video, would be extremely helpful!
Hello @rgladstone1, welcome to the forums. My only guess would be that you’re not writing the else if
blocks correctly. The template for else if
blocks is this:
else if (someCondition) {
//code
}
Notice the condition in the parentheses ()
?
Other than that, I can’t help without you posting your code. Make sure to format it according to these guidelines.