help.completeTopic

Returns a list of topic endings that match the prefix. Can be used with read to allow input of a help topic.

ExampleComplete "hello" topic
Should print "hello".
Code
<nowiki>print("hell"..help.completeTopic("hell")[1])</nowiki>
Output hello

help.completeTopic
Function
Syntax
help.completeTopic(
  • prefix : string
)

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.