Representing Comparison Statements as Equations