Is there a way to use the distance variable to exclude areas for my local truck? (Custom shipping method)

If I have a local truck that will only run 100 miles from my zip is there a way to exclude that option if they are outside that?

Yes thatshouldwork. I've implemented logic in shipping before to charge based on the if the price variable is above a certain number then shipping is free (e.g. price > 500 ? 0:10)