I have a function to hide a slider if another button is pressed. I currently have:

```
@IBOutlet weak var sliderHide: UISlider!

@IBAction func sliderHide(sender: UISlider) {
    if (buttonPlay.selected) {
        sliderHide.hidden = false
    }
    else if (!buttonPlay.selected) {
        sliderHide.hidden = true
    }
}

```

The build is running but the slider only hides if itself is selected. It does nothing if the button is selected.