If you trade-in a vehicle and the bank pays off the loan (was upside down) is that counted as profit from the trade-in?

Trying to figure out if I claim profit or mark as no profit since the payoff went straight to the bank and I owed more than the pay-off. Any ideas.?