Is there a native or simpler way to do plus or minus when comparing two double values. Right now I have done two comparisons like this but I feel like there should be a cleaner way to do this. We are doing a lot of these comparisons in our app so I would prefer to use the simplest and cleanest function for this. 

```
let y: Double = 5 // main value
let x: Double = 6 // value that we are comparing y to
if x > y + 2 || x > y - 2 {
    //Do something
}

```

I am basically looking to check if x (in this case 6) is between 3 (5-2) and 7 (5+2). I want to do something if it is between the two value and do something else if it is not. 

If possible, I want to do it by using the value of 2 opposed to explicitly writing out 3 and 7.