I want to add the expiry check in the OnInit() section and if returns false , I want to prevent it from going ahead. And I want to stop the code.
I have written this:
I wrote the function:
But When it shows the alert it will continue to the OnTick() and continue the code.
I want to stop thecode from running.