2004

Description: Command name was not expected here

Cause: An 'Else', 'Continue', 'Case', or 'End' node was encountered in an unexpected context. For example, an 'Else' command was not within a DoWhen-End block, a 'Continue' was not within a block, a 'Case' was not within a 'BeginCase'-'End' block or an 'End' did not have a corresponding block start command.

Resolution: Correct the structure of the logic by removing the offending command or containing it within an appropriate block.