Difference between revisions of "Help.path"

From ComputerCraft Wiki
Jump to: navigation, search
(It returns the path, it doesn't print it.)
Line 6: Line 6:
 
|returns=[[string (type)|string]] path of help API
 
|returns=[[string (type)|string]] path of help API
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Prints the current path for the help API
+
|desc=Returns the current path for the help API
 
|examples=
 
|examples=
 
{{Example
 
{{Example

Revision as of 03:03, 19 June 2012


Grid Redstone.png  Function help.path
Returns the current path for the help API
Syntax help.path()
Returns string path of help API
Part of ComputerCraft
API help

Examples

Grid paper.png  Example
Prints the current path for the help API
Code
print(help.path())
Output /rom/help