help.lookup

From ComputerCraft Wiki
Revision as of 19:53, 23 April 2013 by Hawk777 (Talk | contribs) (Update description and use type template)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function help.lookup
Returns the path to the file containing the help page for topic, or nil if the topic cannot be found. Each element of the string returned by help.path is searched, in order, for a file named topic.
Syntax help.lookup(string topic)
Returns string path of help file for topic or nil
Part of ComputerCraft
API help

Examples

Grid paper.png  Example
Looks up the path for help on the disk API.
Code
print(help.lookup("disk"))
Output /rom/help/disk