n is the variable but that doesn't matter in this case customer[n]["amount"] = 300 but when i try to add 400, the result shows up as 300400. I need help. Thanks in advance for whoever helps me.
textwindow.writeline("How much do you want to add?")
adding = TextWindow.ReadNumber()
trying to reassign the string customer[n]["amount"]
customer[n]["amount"] = customer[n]["amount"] + adding
TextWindow.WriteLine("Your new amount is: " + customer[n]["amount"])
You have to cast the numbers as integers, try something like:
customer[n]["amount"] = customer[n]["amount"]*1 + adding*1