How To Use Variable In A Variable Name
so i am working with a json variable like this: opponentInvData.item1 it contains items 1 through 6 i need to access the different items dynamically and set them to null. itemNum
Solution 1:
opponentInvData['item1'] = "my item"
is the same as
opponentInvData.item1 = "my item"
Post a Comment for "How To Use Variable In A Variable Name"