Quote:
Invalid expression term 'else'| ; expected
When asking for help, there is a useful skill: giving useful information.
If you look carefully, you will see that the compiler also tells you where it found the error.
Update the question and put a comment in code to show where the compiler complain.