Can't change a variables value inside an if statement

@papahaha, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.

Please post your complete code; and please post it using code tags (the </> button above the reply window).