Before issuing the warrant, the judge, clerk or magistrate shall require a written undertaking on the part of the plaintiff, with sufficient surety, to the effect that if the defendant recover judgment or the attachment be set aside by order of the court the plaintiff will pay all costs that may be awarded to the defendant and all damages which he may sustain by reason of the attachment, not exceeding the sum specified in the undertaking, which shall be at least two hundred and fifty dollars, except in case of a warrant issued by a magistrate when it shall be at least twenty-five dollars.
S.C. Code § 15-19-80