Assertion triggers on edge despite delay added

In reply to Azmo:

The statement ‘X=Y’ is an assignment. Do you mean ‘X==Y’?