Under Sale of Goods Act 1957 (SOGA) Section 12(1), terms of contract can be in the form of 'Condition' or 'Warranty'.
As stated in Section 12(2), condition is a stipulation which is essential to the main purpose of the contract; its breach leads to repudiation of contract. In other words, the injured party has the right to treat the contract as terminated.
However, under certain circumstances, the innocent party cannot repudiate the contract but instead can only claim for damages:
1) where the buyer waives the condition;
2) where the buyer elects to treat the breach of condition as a breach of warranty and claims damages only;
3) where the contract of sale is not severable and the buyer has accepted the goods or part thereof, the breach of any condition must be accepted as a breach of warranty unless otherwise provided in the contract; and
4) where the contract is for specific goods the property in which has passed to the buyer, the breach of any condition must be accepted as a breach of warranty unless otherwise provided in the contract.
(Source: Lee Mei Pheng, "General Principles of Malaysian Law" 5th Edition)
On the contrary, Section 12(3) mentioned that warranty is a stipulation which is collateral to the main purpose of the contract and its breach only leads to a claim for damages.
At times, there is no certainty whether the terms of contract is a condition or warranty. If there is any breach of terms of contract and the matter is brought to the court, the court will determine whether the matter argued is a condition or a warranty.