Instantly toggle boolean values in code