I'm melting a cube that is floating in the air as a sphere used as a temperature source passes through it, but when the simulation starts the cube falls down due to gravity. I want it to stay in the air, except for the parts that are melting. So I was thinking I would set gravity's Activate property to 1 if a particle's temperature is higher than 0, and then check if then for those particles clamp the activation to 1 so it stays affected by gravity even if it was to cool down afterwards.
This way I should have a floating cube, and the parts that melt fall as they melt.
Except I have really no idea how to go about the expression. I have looked at some tutorials on expression, but it's still rather unclear to me

Thanks