


You need to assign an starting value to sodas
before you can add 1 more to it, otherwise it'll show as having a nil
value (meaning literally nothing).



As another commenter mentioned, nil is basically the same as null in other programming languages. So make sure you are properly defining all values, I would try for example writing soda = 0 first then seeing how it works.
[Please log in to post a comment]