Changes the state of sw to the desired one.
TRUE if sw should be active, and FALSE otherwise Since 3.0
See Implementation
Changes the state of sw to the desired one.