Value identification and comparison functions