This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Varscott11's profile picture

test if modem is activated?

Started by Varscott11, 27 August 2016 - 03:51 PM
Varscott11 #1
Posted 27 August 2016 - 05:51 PM
Is there a way to determine if a modem attached to a computer is on or off, and turn that info into a boolean for later use?
KingofGamesYami #2
Posted 27 August 2016 - 06:42 PM
There's modem.isOpen, but I'm not sure that's what you want.
Varscott11 #3
Posted 27 August 2016 - 06:47 PM
Thank you! That is exactly what I wanted! :)/>