Taking values from a table

I have been struggling these past few hours and have exhaustively searched for methods to get values from a table. I have tried various methods such as for i,v in pairs() and much more.

My goal is to get the value under “SchoolName” as shown in this screenshot.
image

If you have any ideas, please let me know and I shall try them when I am available.

This might work:

--where the table is called "MyTable"
print(myTable["SchoolInformation"]["SchoolName"])
--or
print(myTable.SchoolInformation.SchoolName)
1 Like

print(myTable["SchoolInformation"]["SchoolName"]) has indeed worked. Thank you so much. Been struggling!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.