Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Check if there is a modem on the left side
- local side = "left"
- local modem = peripheral.wrap(side)
- if modem == nil then
- -- No modem found on the left side
- print("Error: No modem found on the left side of the device.")
- else
- -- Modem found on the left side
- print("Modem detected on the left side of the device.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement