Skip to main content

Exit and Catch

The Exit tag exits from the current template post or file, ignoring the rest of the content.

<If field=name value=something>
<Exit />

This part will display only if condition above did not match.

It works similarly to a return statement in other programming languages.

Closing tags

It can be safely used inside HTML tags that need to be closed.

<Exit />

The above will correctly close the div tag.


The Catch tag can be used to catch any exits inside of it.


<Exit />

This will not show because it's after exit.

This will show because it's after exit was caught.