This is a simplified version of what I want to accomplish:
In my script I want a variable that changes true and false everytime the script is executed.
A static value will not persist over executions. Every time the script is executed $bool is initialized. I think you should persist this value in a file to keep it simple.