This may be a bit confusing, but I have a table called for example Ant.
This table contains many other (nameless) tables. These tables represent ants and store values.
An example of this:
Ant = {
{age=3,speed=10},
{age=6,speed=7}
}
My question is: how would I check if any of the unnamed table inside the Ant table contains a specific value age.
So, for example, I would like to check if any of my ants are 3 years old.
Hope I was clear enough, and thanks in advance!
source
share