Topic was automatically imported from the old Question2Answer platform.
Asked By
Sha6er
i made this dictionary
var inv_data = {0: {"Item": "10009", "Stack": 1}}
it print this value
{0:{Item:10009, Stack:1}}
0 is the key for 1st value
i want to add a new value
so it will check first if the key exist then it will add a new key and assign to it the new value
can anyone help me with this?