Compare two possibly Null valued variables.
Returns 0 if equal, 1 if field1 is greater than field2, and -1 if field1 is less than field2 Null is always less than any non-Null value
The first variable
The second variable
if False, reverse the compare result
1 2 3 4 5 | CompareValue(Null, Null) => 0 CompareValue(Null, 1) => -1 CompareValue(1, Null) => 1 CompareValue(3, 3) => 0 CompareValue(2, 10) => -1 |