How to use condition in canvas markdown render

Hi all,
I want to hide a part of the content of a markdown render if there are no entries in my query result. For that i try tu use if in my markdown but i can't make it to work.

filters
| essql 
  query={string "select \"services.status globule.funnel_status\" as status, \"services.custom_tags_suffix_service.Qualification d'usage globule\" as qualif, \"services.referent_esea globule.name\" as ref 
from reso_professionnel_v2 where id='" {urlparam param="idRESO" default={var "idPro"}} "' group by status, ref, qualif"}
| markdown 
  "
PAACO :

{{#each rows}}
{if rowCount|compare \"eq\" to=0} then=""
else= {{status}}, <projets a venir>, {{qualif}}, ref: {{ref}}
{{/each}}"
| render

Thanks for your help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.