The $END Statement is used in conjunction with the IF Statement to control conditional compilation. There is a single format:
$END
The whole statement must appear on a single line.
The innermost $IF statement is terminated. The now active $IF condition is considered: