segue storyboard condition issue

segue storyboard condition issue

I have this two controller liked by segue:

enter image description here

My problem is that:

when I tap on selected table view’cell in general I have to follow the segue and so go to other controller , but if a specific condition is true I have to show ad alert view and so I don’t follow the segue and so don’t go to those controller.

In this way when I tap on selected cell I go always on the other controller.

How do I solve this problem?