Mortgage interest deduction

Hi, my Ninja notes for REG state that mortgage interest isn't deductible if the funds were used to pay off credit cards. My CPAexcel course says that the interest is deductible if I bought a truck (they don't give the credit card example). However, it isn't deductible for AMT. i'm not sure which opinion i should rely on. Can you please clarify?