Determines if value1 and value2 can be compared.
value1
value2
a value to compare
another value to compare
true if the values can be compared
true