World of Warcraft: If Quest Done by Quest ID

The following script will print true if the given quest is done.

/script print(IsQuestFlaggedCompleted(12345))