Original: If made of suitable material, some undergarments can serve as nightwear or swimsuits.
Simplified: If made of suitable fabric, some types of underwear can serve as nightwear or swimsuits.