I have some code that constantly checks if a variable is true or false, and another that changes the value if you move out of a specific area. I put this all into a module to use throughout my code, but I've realized it only sends a passed through variable once through the function instead of checking its value at all times. Is there any way to make it check the value multiple times throughout the duration of the function?