Task Description:
Check Internet connectivity. If Internet is not connected, dial a connection.
| Solution |
| 1. | Create a new task |
Using If command with Ping unsuccessful option, check if internet is connected or not.
If Ping unsuccessful ("www.google.com") Then
End If
|
| 2. | Dial a connection |
If Ping unsuccessful command returns true, dial a connection. Insert dial connection command
between If - Endif. You can also set properties like No of attempts & Time between attempts of dial up connection.
Internet Connection : Connect "Dial-up Connection"
Screenshot 1 |
| 3. | Use Loop command to keep on trying to connect to Internet |
You can use Loop command & keep on trying to connect to Internet until it is connected.
Loop While Ping unsuccessful ("www.google.com")
Internet Connection : Connect "Dial-up Connection" End Loop
Screenshot 2 |
| |
| When you run this task, it checks if Internet is connected. It not, then it
connects to the Internet using dial up connection.
This tutorial demonstrates use of 'Loop' + 'Condition' commands. Use
this when you want to perform iterative task based on some condition. |
Screenshot 1:

Screenshot 2:

|