I've been trying to set up a conditional that will display a notification message if there are no entries in the grid. Like this
{if mygrid:total_rows != "0"}
<h6> Title </h6>
{mygrid}
<p>{mygrid:title}</p>
{/mygrid}
{if:else}
<h2>ERROR</h2>
{/if}
However when there are 0 rows the conditional does not execute the ERROR message. I output {mygrid:total_rows} and displays 0 for no rows and 1,2,3... etc if there are entries. If there are grid rows the grid content is displayed.
I'm not sure why the conditional won't execute {if:else}
Even something like won't execute
{if mygrid:total_rows == "0"}
<p> MESSAGE </p>
{/if}