Ever see the movie “Me, Myself and Irene.”? It is the best metaphor for how the Huckster deals with political issues of all sorts.
I think on foreign issues, it’s less that he is flip-flopping, and more that he is so ill-informed that he follows the advice of the last person who spoke to him. When in doubt, he repeats the NYT editorial page.