Connectivity check allows you to store the connected value into a boolean variable, so create a local variable called isConnected and then set the value into that.
You can then do something like.
If (variable connected = true)
SOME ACTIONS
Else
OTHER ACITONS
EndIf