S.C. Code Ann. § 15-35-30
Former Section 15-35-40 was entitled: Judgment may be for or against any of parties to action.