A delta function like response for voltage in to voltage out
Your question is kind of vague, but a window comparator is what I'm imagining you're asking for.

http://ecelab.com/circuit-window-comp.htm



That outputs a low in the middle range, though.

This will give you a high output in the middle, using open-collector comparators: