Difference between revisions of "Template:Function"

From ComputerCraft Wiki
Jump to: navigation, search
(Result)
m (Corrected mapping from "Boolean" to "Boolean (type)")
Line 45: Line 45:
 
{{Function
 
{{Function
 
|name=redstone.setOutput
 
|name=redstone.setOutput
|args=[[string]] side, [[boolean]] value
+
|args=[[string_(type)|string]] side, [[boolean_(type)|boolean]] value
 
|api=redstone
 
|api=redstone
 
|returns=[[nil]]
 
|returns=[[nil]]

Revision as of 13:40, 30 November 2012


Wiki code

{{Function
 |name=redstone.setOutput
 |args=[[string]] side, [[boolean]] value
 |api=redstone
 |returns=[[nil]]
 |addon=ComputerCraft
 |desc=Sets a redstone output
 |examples=Examples go here (use [[Template:Example]])
 |notes=
 * Note 1
 * Note 2
 }}

Note that args, returns, addon, examples and notes are optional.

Result

Grid Redstone.png  Function redstone.setOutput
Sets a redstone output
Syntax redstone.setOutput(string side, boolean value)
Returns nil
Part of ComputerCraft
API redstone

Examples

Examples go here (use Template:Example)

Additional Notes

  • Note 1
  • Note 2