I've tried that, I literally just copied the sample UDF from the link and made the only change be the if-statement and it still doesn't do anything. 

Is it possible this is happening due to the patching? When you patch the zones are they "fixed" there? Is it possible that by patching the zones, I'm telling ANSYS that the liquid zone will always be liquid and its essentially overiding everything else?