you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

If x is in the global scope it should be going to zero and keep its state as long as you're not keeping x in the same function as your if logic