settings.getNames
From ComputerCraft Wiki
Revision as of 02:46, 10 June 2016 by Bomb Bloke (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=settings.getNames |args= |returns={{Type|table}} setting names |api=settings |addon=ComputerCraft |desc=Returns a numerically indexed table cont...")
Function settings.getNames | |
Returns a numerically indexed table containing all currently loaded setting names. | |
Syntax | settings.getNames() |
Returns | table setting names |
Part of | ComputerCraft |
API | settings |
Examples
Example | |
Prints all current settings alongside their values. | |
Code |
local curSettings = settings.getNames() for i = 1, #curSettings do textutils.pagedPrint( curSettings[i] .. ": " .. tostring( settings.get( curSettings[i] ) ) ) end |
Settings API Functions |
---|
settings.set - settings.get - settings.unset - settings.clear - settings.getNames - settings.load - settings.save |