To promise, in the course of legal proceedings, to do or refrain from doing an act. An undertaking is enforceable by attachment or like an injunctionA court order which directs someone either to do, or to refrain from doing, a particular thing. An injunction may be interim (operative until further order) or perpetual (continuing indefinitely). More.