The $endif compiler directive is used to close a block started with $ifdef.
Example:
; this code is executed $ifdef Hello ; this code is not executed $endif ; this code is executed
See Also Compiler directives