Difference between revisions of "Peripheral.isPresent"
From ComputerCraft Wiki
(Semicolons are not needed, change single quotes to double) |
(Corrected mapping from "Boolean" to "Boolean (type)") |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|name=peripheral.isPresent | |name=peripheral.isPresent | ||
|args= [[string (type)|(string)]] side | |args= [[string (type)|(string)]] side | ||
− | |returns=[[ | + | |returns=[[boolean_(type)|boolean]] whether a peripheral is present on ''side''. |
|api=peripheral | |api=peripheral | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Line 14: | Line 14: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 13:48, 30 November 2012
Function peripheral.isPresent | |
Tells you whether a peripheral is present on a side of the computer or the turtle. | |
Syntax | peripheral.isPresent((string) side) |
Returns | boolean whether a peripheral is present on side. |
Part of | ComputerCraft |
API | peripheral |