Inversions
Selection inversions take an existing selection and replace it with code that is essentially the opposite of the original. You can use Selection Inversion to swap assignment statements, invert the logic in Boolean assignments to true or false, change the iteration direction on for-loops, and more.
To invert a selection, press Ctrl+Shift+I
For more information, see Invert Selection.