comp function

Comparison of two fields