http://pastebin.com/xH8wESx3

line 9 echos (debug line) the correct variable but it doesn't get unset. wtf is the deal. been over 8 years since i scripted and yes it looks like poop. definitely could be done better and Ive done better in the past but forgot how.

just would like to know how to and why the variable isn't getting unset when it reaches 0 or less