Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 663 Bytes

settings.md

File metadata and controls

42 lines (25 loc) · 663 Bytes

Settings

settings

The settings library can be used to get and set data that you wish to store.

The settings library is global and does not need to be imported.

get

settings are easily read using the settings global.

print("the port is " .. settings.port);

For keys containing spaces or other invalid names/characters:

settings["foo bar 123"];

set

settings can just as easily be changed.

settings.port = 8080;

For keys containing spaces or other invalid names/characters:

settings["foo bar 123"] = "hello world!";