Expected '@end'
You attempted to create a conditionally compiled block of code, but did not include the @end statement at the end. JavaScript statements can be conditionally compiled by enclosing them within an @if/@end block.
To correct this error
- Add the corresponding @end statement.