Don’t do that #16: Use the For loop to create an infinite loop

By | April 10, 2015

Don’t do that: The following code is creating an endless loop to ping a server.


Do that: Another way to create an endless loop (using a for loop with empty initialization, condition, and afterthought).

Note: The parameter -Quiet returns a boolean value (True/False).


previous-buttonnext-button

Leave a Reply

Your email address will not be published. Required fields are marked *