@ENDIF

Marks the end of the content part of a @IF, @ELSE or @ELSEIF.

Every @IF needs a corresponding @ENDIF.

Usage

<# @ENDIF #>

Examples

Example With these variables Result

Text before.
<# @IF(country = “Canada”) #>
A Canadian somewhere.
<# @ENDIF #>

country is "Canada"

Text before.
A Canadian somewhere.

More information

A more in-depth explanation for using @IF (and @ENDIF) is available in the explanations: Clarifying @IF.

See also