How to define a condition for a covergroup (using iff)?

In reply to Noga_Tamir_V:

Not exactly sure how you want the condition to affect the covergroup, but maybe you simply want to use the condition when you construct the covergroup.

if (config_ind == 1) condition_cfg_cg = new();