Recently I was trying to make better strings displayed to user. So here we have this code to make new table:
EX1
local table = {
InnerTable1 = {"str1", "str2", "str3"}
InnerTable2 = {"str5", "str6"}
}
EX2
local table = {
InnerTable1 = {"str1"}
InnerTable2 = {"str7", "str8", "str9"}
}
What you want to do with any of these tables now, is to structure them into 2 columns as such:
COL1 (will correspond to InnerTable1)---------------COL2 (InnerTable2)
str1-----------------------------------------------------str5
str2-----------------------------------------------------str6
str3-----------------------------------------------------
These columns represent string in the console (you know when you print messages), my issue is how would one actually achieve this goal. Its very easy to simply print one column after another but I am looking to have them printed side by side.
These InnerTables are not fixed size and they change, so its hard to predict how many times you should iterate . I guess this is not a big issue because you can easily get the size. What I am struggling with is, trying to iterate over one InnerTable once and then I want to switch to another to concatenate the string - I guess that's part of the solution
EX1
local table = {
InnerTable1 = {"str1", "str2", "str3"}
InnerTable2 = {"str5", "str6"}
}
EX2
local table = {
InnerTable1 = {"str1"}
InnerTable2 = {"str7", "str8", "str9"}
}
What you want to do with any of these tables now, is to structure them into 2 columns as such:
COL1 (will correspond to InnerTable1)---------------COL2 (InnerTable2)
str1-----------------------------------------------------str5
str2-----------------------------------------------------str6
str3-----------------------------------------------------
These columns represent string in the console (you know when you print messages), my issue is how would one actually achieve this goal. Its very easy to simply print one column after another but I am looking to have them printed side by side.
These InnerTables are not fixed size and they change, so its hard to predict how many times you should iterate . I guess this is not a big issue because you can easily get the size. What I am struggling with is, trying to iterate over one InnerTable once and then I want to switch to another to concatenate the string - I guess that's part of the solution