Difference between revisions of "Modem.close"
From ComputerCraft Wiki
(Categorised page) |
MKlegoman357 (Talk | contribs) m (Expanded) |
||
| Line 1: | Line 1: | ||
{{Function | {{Function | ||
| − | |name=modem.close | + | |name=''modem''.close |
| − | |args={{type| | + | |args={{type|number}} channel |
| + | |returns={{type|nil}} | ||
|api=Modem | |api=Modem | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| Line 7: | Line 8: | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
| − | |desc=Closes | + | |desc=Closes channel 1. |
| − | |code=modem.close(1) | + | |code= modem.close(1) |
| + | print("Channel 1 is now closed and is no longer used for listening.") | ||
| + | |output=Channel 1 is now closed and is no longer used for listening. | ||
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] | ||
Revision as of 15:42, 9 April 2014
| Closes the specified channel. | |
| Syntax | modem.close(number channel) |
| Returns | nil |
| Part of | ComputerCraft |
| API | Modem |
Examples
| Closes channel 1. | |
| Code |
modem.close(1)
print("Channel 1 is now closed and is no longer used for listening.")
|
| Output | Channel 1 is now closed and is no longer used for listening. |