printing subreport depending on the return value from it
===

I have subreport, which returns sum of amount to main report. 
Is it somehow possible to hide printing subreport,maybe using Print when expression parameter, when return value is 0 ? 

Example:

sum of amount from subreport is 10,00 EUR --> subreport is printed;

sum of amount from subreport is 0,00 EUR --> subreport is not printed

Or have I to count the sum of amount in main report SQL ? 

I use iReport, 4.6.0 version.

Thanks