# Include:If_Exists

Renders a view if it exists.

## Overview

You can use this tag to output a view if it exists. If the view doesn't exist, nothing is output instead of throwing a "view not found" exception. Useful if you have some sort of dynamic loop.

::tabs

::tab antlers
```antlers
{{ include:if_exists src="myview" }}
```
::tab blade
```blade
<s:include:if_exists src="myview" />
```
::

This tag accepts everything the [`include`](/tags/include.md) tag does, including [slots](/tags/include.md#slots) and the same [scope rules](/tags/include.md#scope-isolation).

## Related Reading

This tag goes hand in hand with the [`include`](/tags/include.md) tag.
You may be interested in the [`include:exists`](/tags/include-exists.md) tag if you need to do a more complicated conditional check in your template.
