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

In reply to Rahulkumar Patel:

I think you are confusing the goal behind the original question. This is why it’s usually a better practice to start a question in a new thread than tacking on to an existing question.

I believe they want conditional bin construction, not conditional sampling. Otherwise you wont up unable to get 100% coverage of your coverpoint.