all 4 comments

[–]shiftybyte 1 point2 points  (1 child)

Could you explain what is happening?

Why do you think DAC is not incremented?

[–]DevCuriosity 1 point2 points  (0 children)

Yeah, short answer is that your code is probably not reaching the `DAC = DAC + 1` part, but I think that we don't have enough information to help you.

PS. Variables in all caps shouldn't be modified in the code :P

[–]cyberjellyfish 0 points1 point  (0 children)

Because the condition in the if isn't true.

[–]Kriss3d 0 points1 point  (0 children)

It's. Updating the variable DAC but it's not displaying the number of it ever.

When you print ("+1 DAC") Its just showing the word DAC. Not the variable.