Added an example of setting or clearing bits depending on the value of a boolean flag.