Deductions & credits

Thank you, very interesting.

So to make sure I understand correctly, let's assume I deduct 10k off my property taxes, but also pay 10k in state income taxes. If I then get a 5k state tax refund, the 5k is not taxable income? Since it is still below the extra state income taxes I was unable to deduct above the cap of 10k?