Added method to compare two conditions.