I get an error message that says "missing before statement." It's not clear to me what is meant by this.
Thank you for your help,
Re Edit: I think I figured it alone! The else-statement should be followed by curly brackets, not by a "no" conditional.
Replace this line with your code.