How do I add a specific class in a row of a table output depending on a field content? I use the Views module to list the content of a custom entity, using the Table format.
I'd like to add the myClass CSS class to each row where a given field is equal to zero.  

How can I achieve this?

Edit I found out that I could use 'Rewrite results' (Overriding the output of a field with custom text) with twig.
For example:  

{% if nombreproduits == '0' %}  
{{ '99/99/9999' }}  
{% else %}  
{{ datedistribution }}  
{% endif %}  


How could I use that to add a class to the corresponding row?
Two options: 


You alter your view with a View hook and you add to the row class value your own class based on one of the field value
You use this solution, and you can check with twig the actual row content and add a class based on that(use devel module and {{ kint(row) }} to understand how to reach the values you want)