Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
BasicTablePrinter
local itemsToPrint = { "no", "nah", "nope", "heck no", } local compileToOneString = true --If true, make a single text line with all items from the table. local compileDivider = " " --[[Is only read when compiled to a single string. Can be an alternative for serial. This is the text that goes between individual objects in the table.]] local showSerial = true --[[Is only read when compiled to a single string. Shows number in [] to show what number the object is. Recommended if some items have spaces in them to reduce confusion. (Divider can be an alternative if a visible character is used.)]] function printInfo(info, time, compile) --Main function. Really, the only function. if not compile then for getInfo = 1,#info do print(info[getInfo]) end elseif compile then local singleString = "" for compileInfo = 1,#info do if not showSerial then singleString = singleString..""..compileDivider..""..info[compileInfo] elseif showSerial then singleString = singleString..""..compileDivider..""..info[compileInfo].. "["..compileInfo.."]" end end print(singleString) end print() print("_Started at time: "..time) print("Finished at time: "..os.time()) print("Time space [Seconds]: "..os.time() - time.." (Miliseconds: "..((os.time() - time)*1000)..")") end printInfo(itemsToPrint,os.time(),compileToOneString)
run
|
edit
|
history
|
help
0
1
test123
quick sort
Percentage Calculator (Subscribe to Madflag19)
True every 5
Lua recursion with function
example for a friend
as
Lua Timer
l