title: how to apply condition based custom segue in storyboard
body: <p>i am working on storyboards which has couple of views on first view a condition is placed i want if the condition satisfies then only navigation should happen</p>
  
  <p>For this i have used Custom segue but no matter my condition satisfies or not it navigates to new view.</p>
  
  <p>I have created method in custom segue class</p>
  
  <pre><code>- (void) perform{
  
      NSLog(@"source %@",self.sourceViewController);
      NSLog(@"dest %@",self.destinationViewController);
  
      UIViewController *sVC=self.sourceViewController;
      UIViewController *dVC=self.destinationViewController;
  
      [sVC.navigationController pushViewController:dVC animated:YES];
  
  
  }
  </code></pre>
  
  <p>I want to set condition if result is 1 then only it should navigate. Woul prepareforsegue or initwithsegue provide me any help</p>