Posted 27 June 2013 - 06:42 AM
hello evereyone,
i´m trying to print the content from a table from wich i don´t know the keys of. I need it to get the peripheral methods for that peripheral.
to be honest i am not brilliant with tables but only understand the value assignment of them an how to use them.
but i don´t know how to just print them.
i´ve read something about ipair() or pair() but don't know what to do.
this is the code as i have it so far.
if someone can help me, it would be great.
i´m trying to print the content from a table from wich i don´t know the keys of. I need it to get the peripheral methods for that peripheral.
to be honest i am not brilliant with tables but only understand the value assignment of them an how to use them.
but i don´t know how to just print them.
i´ve read something about ipair() or pair() but don't know what to do.
this is the code as i have it so far.
pipe=peripheral.wrap("front")
tabl={}
pipe.setTurtleConnect(true)
tabl=pipe.peripheral.GetMethods("front")
i= ipair(tabl)
print()
if someone can help me, it would be great.