Difference between revisions of "Help.topics"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) |
Smiley43210 (Talk | contribs) m (Corrected grammar) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=help.topics | |name=help.topics | ||
− | |||
|api=help | |api=help | ||
− | |returns= | + | |returns={{Type|table}} of all valid topics |
|addon=ComputerCraft | |addon=ComputerCraft | ||
+ | |desc=Returns a list of all available help topics. This is all files found in the directories in the search path returned by [[help.path]]. The returned table is sorted. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=Lists all valid help topics | + | |desc=Lists all valid help topics. |
− | |code=for | + | |code=for _, v in ipairs(help.topics()) do |
+ | print(v) | ||
+ | end | ||
|output=List of all valid help topics | |output=List of all valid help topics | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:API_Functions]] |
Latest revision as of 15:56, 2 May 2013
Function help.topics | |
Returns a list of all available help topics. This is all files found in the directories in the search path returned by help.path. The returned table is sorted. | |
Syntax | help.topics() |
Returns | table of all valid topics |
Part of | ComputerCraft |
API | help |
Examples
Example | |
Lists all valid help topics. | |
Code |
for _, v in ipairs(help.topics()) do print(v) end |
Output | List of all valid help topics |