An Else statement is used without a corresponding If statement. Check other control structures within the If...Else structure and verify that they are correctly matched. For example, a While without a matching Wend inside the If...Else structure will generate this error.
Also check that the block If is correctly formatted.