title: How can I stop executing an action in Swift?
body: <p>In other languages like C or Java, if I want to stop executing a method and return a value I do like below:</p>
  
  <pre><code>public void aFunction() {
    if(a == b) {
     // Do something...
     return; // stop here
    }
    // Do something else
  }
  </code></pre>
  
  <p>If swift, I assign an action for a button</p>
  
  <pre><code>@IBAction func button_1(sender: AnyObject) {
       if a == b
       {
          // Do something ...
          /* I want to stop here but I don't know how */
       }
       // Do something else
  }
  </code></pre>
  
  <p>How can I stop executing script inside an Action?
  Thanks.</p>