Hey Jim, This is a very basic python problem and should be easily solvable. I would recommend searching on youtube and getting a slightly better understanding of if/then statements. My guess is that the API returns has a very different response for when the port is online or offline. You can use that response to determine whether the port is online and then decide if you want to execute that part of the code or proceed to port 10. As an example, you can check if the API includes a certain string: https://flexiple.com/python-string-contains For future reference, its best to share a part of your code as this helps us understand and assist you a lot quicker 😉 Good luck!
... View more