How to toggle a boolean? September 13, 2022 by Tarik bool = !bool; This holds true in most languages.