ENDIF

Use

ENDIF.

This command terminates an IF...ENDIF block. See IF.