How do i add a "switch" to code

Maybe a video will get the point across...