Formal:
* The judge condemned the defendant to life in prison.
* The international community condemned the use of chemical weapons in the conflict.
* The report condemned the government's lack of action on climate change.
Informal:
* I condemn your actions; they were hurtful and unfair.
* My parents condemned my choice of music.
* The doctor condemned the old building as unsafe for habitation.
Figurative:
* The artist's work was condemned by critics as being too avant-garde.
* Her actions were condemned by her conscience.
As you can see, "condemn" can be used in many ways, depending on the context. It can express strong disapproval, judgment, or even punishment.