Difference between revisions of "Redstone.getBundledOutput"
From ComputerCraft Wiki
(changed the content to the function template, anyone please review this - never used the function) |
(Changing int to number) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=redstone.getBundledOutput | |name=redstone.getBundledOutput | ||
− | |args= | + | |args={{type|string}} side |
|api=redstone | |api=redstone | ||
− | |returns= | + | |returns={{type|number}} the value of the colors that are activated on that side |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
|desc=Prints the value of the active colors on the back | |desc=Prints the value of the active colors on the back | ||
− | |code=[[print]] (redstone.getBundledOutput ("back")) | + | |code=[[print]](redstone.getBundledOutput ("back")) |
|output=the value of the colors, for example 1 if only white is active. | |output=the value of the colors, for example 1 if only white is active. | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 11:50, 18 July 2013
Function redstone.getBundledOutput | |
No description provided. | |
Syntax | redstone.getBundledOutput(string side) |
Returns | number the value of the colors that are activated on that side |
Part of | ComputerCraft |
API | redstone |
Examples
Example | |
Prints the value of the active colors on the back | |
Code |
print(redstone.getBundledOutput ("back")) |
Output | the value of the colors, for example 1 if only white is active. |