Mont. Code Ann. § 25-10-102
25-10-102 When costs allowed, of course, to defendant
25-10-102 . When costs allowed, of course, to defendant. Costs must be allowed, of course, to the defendant upon a judgment in the defendant's favor in the actions mentioned in 25-10-101 .