Need some help with integers

Hi, im trying to set the Rounds int from Duration - 1 every time the round ends. This seems to work the first time i end the round. The Rounds int changes from 3 to 2 but the next round i end it stays at 2. i want it to count down to zero.

Well, the duration never changes, right?

You subtract 1 from the same duration value each time without actually modifying duration itself. I’d do it like this:

That’s pretty much all you need here. This also works for ++ node. And now you know where C++ comes from.

Spot on. You’re subtracting from the same integer over and over again without retaining anything.

Setting the variable “Rounds” to Duration-1 every time it’s called is saying “Set Rounds to 2. Set Rounds to 2…”

Facepalm Ty guys!