as Shanth indicates you would have to use a shared variable. IN order to pass it back you would have to run the sub report in a section above the gf (either in the GH or a GFa) and then return the value in a section below wher eyou run the sub report and then you can suppress a section belwo that based on that shared variable formula.
E.g.
run the sub report in Gfa
return the variable in GFb
move your other data from the main report to GFc and suppress it based on the value from GFb