Blink a led when router not connecting to imp cloud

Hello my imp is connected to my wireless router.

However for 2 hours my router did not connect to imp cloud so i would like to blink a led when the imp is connected to wifi but not to cloud.

What is the code?
thank you

got it !
Read the docs right?