title: How to make IBAction do nothing until button pressed?
body: <p>I am making a swift program that rolls die when a button is tapped but before that it asks them if they believe they will roll snake eyes, yes or no.</p>
  
  <p>I want to know if its possible that when yes or no is tapped it will wait for the user to tap the roll button and then execute a response based on that? I am confused on how to add an IBAction pressed.</p>
  
  <p>I have tried to add the yes button IBAction into the roll button IBAction and have ended up with many errors. </p>
  
  <pre><code>@IBAction func yesButton(_ sender: Any) {    
      if(diceImageView1.image == diceImageView2.image){
          resultText()
      } else {
          lossText()
          //functions changes label to message telling user if they rolled  snake eyes or not 
      }
  }
  </code></pre>
  
  <p>I expect the user to be able to tap a response and then have to tap the roll button for the label to change.</p>