can anyone help me with this else serror?

Hey!

In certain cases, the error indication does not appear at the point of your actual mistake, but occurs on the first line on which your mistake causes an error. For example, if you leave out the closing curly brace (}) in one of the functions of your page code, an error will most probably occur on whatever the next line of code happens to be. In the code shown below, a closing curly brace is missing from line 6, but the error does not occur until line 8.

my suggestion would be to use the autocomplete that is built in Corvid code panel.
The autocomplete pop-up also includes standard Javascript methods that you can call on your element.
So if you type ‘if’ it will offer you the if…else statement and you will be sure that you did not lose any braces and that your syntax is correct.
Use the autocomplete to get the if…else template and then just move sections of your code accordingly.