Main Help → All Commands → Language Reference → EndIf
The endif command defines the end of a conditional block.
endif