A fundamental computer capability. By comparing one set of data with another, the computer can locate, analyze, select, reorder and make decisions. After comparing, the computer sets an indicator that the next instruction can test to find out whether the data elements were equal or which was numerically greater or less than the other. See
3 C's,
if-then-else and
ASCII chart.