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 8 years ago

How would I do this???

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

1 answer

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

The table.insert function cannot setup dictionaries for you.

You can set the index like so:

1Table["name"] = value;

Or, like this :D

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

Answer this question