12. functions if/else



I'm so confused I browsed the other threads and I can't understand what I'm doing wrong.

the Syntax error is that it "expected expression, got keyword 'else"



else is an optional part in an if-statement.
You are terminating your if-statement on line 5 by having an empty statement as the statement that is executed when the condition is true.


omg!!!!! thank you so much!


Also, you should indent according to your braces, otherwise it gets very difficult to tell what belongs to what and what runs when.


ok for sure I will focus on that thanks