Can I InsertItem Key=Value pair?
Posted: Mon Jun 26, 2017 11:42 pm
I am trying to figure out a way to put key=value pair to a table preferably using InsertItem command.
what I am after is basically:
Because all Keys are unique, I could do it simply using:
But just for style and consistencys sake, i would prefer using InsertItem command for it. Is there any way to do it with it, for i cant figure out a way to do it.
what I am after is basically:
Code: Select all
table = {
["key1"] = "string1",
["key2"] = "string2"
}Because all Keys are unique, I could do it simply using:
Code: Select all
table[key] = value