help.completeTopic
Returns a list of topic endings that match the prefix. Can be used with read to allow input of a help topic.
|
|||
Should print "hello". | |||
Code | <nowiki>print("hell"..help.completeTopic("hell")[1])</nowiki>
|
||
Output | hello |
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
help.completeTopic Function | |
---|---|
Syntax help.completeTopic(
| |
Returns | table |
API | Help |
Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.