@3dyorick Another way of doing it without upgrading or using conditional gcode is add commands to heat the nozzle at the start of your homeZ moves. (That's what I do because I use the nozzle as a probe).
So for example you can have....
T0 ; select tool zero M104 S140; heat to 140 (use whatever temperature you decide on) M116 P0 ; wait for it to reach temperature G1 H1 Z-nnn .....etcOne slight caveat is that if the nozzle is already at say 180 deg C, the above code will wait for the nozzle to cool to 140. So pick an appropriate temperature to sit you usage case. (although it would be unusual to have the hot end heated fully to print temperature before commencing any homing moves).