Driving lamp intensity with material function

It uses these nodes:

So all I really need is to get the output value of that last multiply and use it to drive the intensity of a sky light.