Writing coverpoints using with clause

In reply to dave_59:

Thank you Dave,the problem is solved after replacing with by iff.
But still iam not clear when to use with clause.