settings.get

From ComputerCraft
Jump to navigation Jump to search

settings.get
Function
Syntax
settings.get()
Returns any value
API settings
Source CC:Tweaked (source)

Returns the value of a setting. If the setting doesn't exists, the second argument will be returned.

ExampleExampleGet the value of a setting
Get the value of the setting "shell.autocomplete" and print it.
Code
print(settings.get("shell.autocomplete"))
Output
true

,