Variable to check if viewing an entry? How would I write a variable to detect if the current page/Url I'm viewing is for an entry, rather than a section home page or a single?

i.e

{% if I'm currently viewing an entry %}
    do this
{% else %}
    do this
{% endif %}
There are three types of sections in Craft: singles, structures, and channels. You can use entry.section.type to test if the current page is displaying one of these section types.

{% if entry.section.type == "channel" %}

    &lt;p&gt;This is a channel&lt;/p&gt;

{% elseif entry.section.type == "single" %}

    &lt;p&gt;This is a single&lt;/p&gt;

 {% elseif entry.section.type == "structure" %}

    &lt;p&gt;This is a structure&lt;/p&gt;

 {% endif %}