So I have this conditional that works properly for entries with matrix rows:
{if {tech_documents:total_rows search:doc_thumb="IS_EMPTY"} > 0}
...
{if:else}
...
{/if}
However, entries that have no rows for this matrix field throw a template error:
Error
You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.
Parser State: Invalid Condition: Not enough operands for operator ” > “.
Running: EE 2.9, Matrix 2.6, Assets 2.4