Pass value to compare against to custom function