You can use a conditional field:
Normally a card would be generated if either the expression or notes field had text
in it. If you only wanted a card generated if expression was not empty, then you could
change the template to this:
{{#Expression}}
{{Expression}}
{{Notes}}
{{/Expression}}
For further details see Conditional Replacement.