This can be done with path aliases and some string functions in the rule block.
For example, if the MKT# Order headlines below have zero values it needs to show the headline names in the "OrderValue 0 Instance" headline.
When the MKT# Order headlines have non-zero values.
When the MKT Order headlines have 0 values.
The rule block looks like below:
Attached is the xml file of the rule.