So I was trying to insert something into a table then I realized that

When I did

Tbl = {}

TblVal = {'G',S = false, G = true,false, true}

table.insert(Tbl,TblVal)

I have to do Tbl.TblVal.S

But I only want the values inserted so I can just do Tbl.S how would I do this

WHEN DO YOU TABLE.INSERT YOU GOTTA DO

Tbl.TblVal.S

BUT WHAT I WANT TO DO IS


TBL.S 

3 comments

0

Is it possible for you to elaborate on what you need to happen? Is it you want to move the vlaue from TblVal into Tbl or only one of said values?

0

I like the question, heres a free upvote

0

Also for an answer, you could just do {'G',false,'S',false} and counter off of those 2 by using % 2