BERLIN (Reuters) - Germany will walk out of the U.N. General Assembly if Iranian President Mahmoud Ahmadinejad denies the Holocaust in a speech he will give Wednesday, and it wants other European Union countries to do the same, the foreign ministry said.

“We will leave the hall if President Ahmadinejad denies the Holocaust or makes anti-Semitic statements ... we are making efforts toward a unified European position,” a spokesman said Tuesday.

Ahmadinejad has, as recently as last week, called the Holocaust a lie, repeating his position just as world powers try to decide how to deal with Iran’s nuclear ambitions.

Denying the Holocaust, carried out by the Nazis in World War Two, is a crime in Germany. Last week German Foreign Minister Frank-Walter Steinmeier condemned Ahmadinejad’s latest denial and called him a disgrace to his country.