Evaluate a condition

While defining Custom Rules, I would like to check the result of a condition.
Is there a way to actually show if a specific condition resolves to “True” or “False” ?

I use an always-false assert constraint for this, something like:

(constraint assertion "A.NetName != A.NetName")

What I meant is how do I check how a condition evaluates ?
In other words, say I have a condition like below:

(condition "A.hasNetclass('BUS')")

How do I know if it evalutes to True or False ?
Because if the condition is wrong, then the rules won’t work.

Because if the condition is true, the assert constraint will be shown as a DRC error.

Ok, got it. Thank you.