Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

insert a name = value into a table.insert?

Asked by 7 years ago

How would I do this???

--I know that this is wrong
table.insert(Table, Value = "Value")

1 answer

Log in to vote
2
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago

The table.insert function cannot setup dictionaries for you.

You can set the index like so:

Table["name"] = value;

Or, like this :D

Table.name = value;
0
Thanks shadownetwork 233 — 7y
Ad

Answer this question