Imagine these lines of code;
local currentName local currentJob local currentStatus local table = { { name = "Mark", job = "Mayor", status = "Alive" } { name = "Pete", job = "Doctor", status = "Alive" } { name = "John", job = "Innkeeper", status = "Alive" } { name = "Luke", job = "Unemployed", status = "Dead" } }
Let’s say I need to gain some info out of the table, for example, in this case, from the doctor. How do I instruct Corona to get the information of the doctor, so that I get the following results;
local currentName = "Pete" local currentJob = "Doctor" local currentStatus = "Alive"
I have searched several websites, but I couldn’t find any of these… :unsure: