# Conditional Statement in Assertion Property

**URL:** <https://verificationacademy.com/forums/t/conditional-statement-in-assertion-property/33671>\
**Category:** SystemVerilog\
**Tags:** conditional-statement, SystemVerilog, assertion\
**Created:** [November 2, 2017, 8:44am UTC](https://verificationacademy.com/forums/t/conditional-statement-in-assertion-property/33671 "2017-11-02T08:44:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Reuben](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/reuben/32/1409_2.png) [@Reuben](https://verificationacademy.com/forums/u/Reuben)\
**Post date:** [November 2, 2017, 11:58am UTC](https://verificationacademy.com/forums/t/conditional-statement-in-assertion-property/33671/3 "2017-11-02T11:58:28Z")

</div>

_In reply to [Tudor Timi](https://verificationacademy.com/forums/t/conditional-statement-in-assertion-property/33671/2):_

> _In reply to [Reuben](https://verificationacademy.com/forums/t/conditional-statement-in-assertion-property/33671/2):_  
> What is the natural language requirement you are trying to model as an assertion? When ‘a’ is low, do you expect to see ‘sig1 & sig2 & sig3’ always, followed by ‘sig\_B’? Do you only expect ‘sig1 & sig2’ to be true when ‘sig3’ is high? A detailed description of what you want to achieve would help.

Hi. I just want to know how if-else statement is evaluated in assertion property.  
I’m analyzing someone’s code and that is how he wrote his assertion. When I ran the simulation, I saw that his assertions are passing even though the antecedents are not yet met. ‘a’ is always low, sig3 never becomes high, but the assertion is passing. How come?

---

_[View the full topic](https://verificationacademy.com/forums/t/conditional-statement-in-assertion-property/33671)._
