Difference between revisions of "Help.lookup"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=help.lookup |args=string topic |api=help |returns=string path of help file for ''topic'' or nil |addon=Compu...") |
|||
| Line 6: | Line 6: | ||
|returns=[[string (type)|string]] path of help file for ''topic'' or nil | |returns=[[string (type)|string]] path of help file for ''topic'' or nil | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| + | |desc=Looks up the path for a help file using the [[help.path|help.path()]] directory. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
Revision as of 14:42, 29 May 2012
| Looks up the path for a help file using the help.path() directory. | |
| Syntax | help.lookup(string topic) |
| Returns | string path of help file for topic or nil |
| Part of | ComputerCraft |
| API | help |
Examples
| Looks up the path for the disk api | |
| Code |
print(help.lookup("disk"))
|
| Output | /rom/help/disk |