In any personal action in a circuit court, wherein it is ascertained that less than $100, exclusive of interest, is due to the plaintiff, judgment shall be for the defendant, unless the court enter of record that the matter in controversy was of greater value than $100, exclusive of interest, in which case it may render judgment for the plaintiff for what is ascertained to be due him, with or without costs, in the court's discretion.
Va. Code § 17.1-514