ENDIF

Use

ENDIF.

This command terminates an IF...ENDIF block. More information: IF .