Coverpoint turn off and on

In reply to dave_59:

if (condition)
cginstname.cpname.option.weight=0;

This turns off the individual coverpoint (making its goal % = 100 but hit % remains same). This does not increase the cumulative coverage.

How to turn off a coverpoint based on any condition so that it impacts the overall coverage ??