27-15-102. Availability of provisional remedies to defendant interposing counterclaim. Whenever the defendant interposes a counterclaim and demands an affirmative judgment against the plaintiff, the defendant's right to a provisional remedy is the same as it would be in an action brought by the defendant against the plaintiff for the cause of action stated in the counterclaim and demanding the same judgment. For the purpose of applying the provisions of Title 25, chapter 8, and Title 27, chapters 15 through 20, to a case involving a counterclaim, the defendant is considered the plaintiff, the plaintiff is considered the defendant, and the counterclaim set forth in the answer is considered the complaint.