Global variable not sticking

Is there a better way to post it?

Put it directly in a post using code tags if it will fit. Otherwise attach the code itself, not a zip, to the post