I got 2 inputs, both form 0-5V how can i see if they diverge form one another by more than 10 percent?. And if so my output must be a 0V. How can i do such thing?
It's not clear what exactly you are taking 10% of to determine the maximum allowed difference between the two signal. I'll assume that you want to know whether signal B is within 10% of signal A.
There are several ways to do this.
The caveman way
Use a diff amp to make the voltage difference between the two signal. Use a voltage divider on signal A to make the max allowed voltage difference. Just comparing the two isn't good enough since the diff amp output is ± and you only have a single-ended maximum allowed threshold.
One way to solve this is to follow the diff amp with a absolute value circuit.
Then you compare abs(B-A) to the threshold with a comparator.
Another way is to make the negative of the maximum difference signal. Then use a window comparator to detect whether (B-A) is within the ±threshold range.
The 1990s way
Use a microcontroller with two A/D inputs. Measure the two signals and do the calculations to get the answer. This is the way to go as long as the signal bandwidth and response time requirements are low enough. 10 µs would be easy to do with a number of mainstream micros available today, for example.
How about a dual comparator (opamp) based circuit?
You can check with one comparator and a voltage divider if one input voltage is smaller than the other's ten percent. The other comparator will check the other constrain. You can then use an open collector-like circuit for a wired OR gate.
Optionally you can buffer the inputs, if the voltage divider causes too much load for the inputs.