title: Create an if statement when button is pressed in Swift
body: <p>Hi Im trying to create an if statement that has one option if button nr 1 is pressed and one option when button nr 2 is pressed. Im working with Xcode 6 and swift.</p>
  
  <p>Here's the code i've tried so far:</p>
  
  <pre><code>if myButton1.touchInside = true {
      //Do something
  }else{
      //Do something else
  }
  </code></pre>