Complex sentence: Bandanas can be worn in various types of colors and ways to signify what gang they are affiliated with.
Split into simpler sentences: Bandanas can be worn in various types of colors and ways. This is done by gang members to signify which gang they are affiliated with.