Comparators are used everywhere, where certain conditions affect the result. Think of a counter which has reached a certain value. Also comparators are used in microprocessors to test jump conditions and comparators in computers help to control the communication.
Comparators can be set up by a combination of logic gates. Find out what different kind of comparators there are and how they are constructed.
Before you can start with your first comparator, you need to make a few preparations.