ChosenSquirrel

selectdevice.lua

May 7th, 2022
1,343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. table = require("devices"):list()
  2. function DumpTable(table)
  3.     local out = "\t"
  4.     for i, v in pairs(table) do
  5.     print(" ");
  6.     print("_",i,"_");
  7.     print(v);
  8.    
  9.     end  
  10. end
  11.  
  12. n = io.read("*n")
  13. DumpTable(table[n])
  14. DumpTable(table[n]["typeNames"])
  15.  
Advertisement
Add Comment
Please, Sign In to add comment