Added compare

Compares value of field to what's passed in.