This seems kind of silly, but I must be missing something, as I cannot for the life of me get this counting button to work.
It should work like this:
1. Varible A is definied as 0
2.The command 'count' is then executed when the button is pressed. Count Adds 1 to A, A is then printed, repeat step 2 for each button press.
It seems so silly that I cant get this to work, it says A is yet to be defined, despite that being the third thing I do. Help would be appreciated, as I'm playing to do a calculator with this as more or less the base.
http://pastebin.com/ZpzHpPm5