Definition: on is a solemn declaration that evidence is true, made by a person who objects to swearing an oath or for whom no oath is available. It has exactly the same legal effect and consequences as an oath.
A witness need not give a reason for choosing to affirm, and no adverse inference may be drawn from the choice. The wording is prescribed: the witness declares and affirms that the evidence they shall give will be the truth, the whole truth, and nothing but the truth.
Related Questions:
Is an affirmation as good as an oath? Yes. It carries identical force. Evidence given on affirmation has the same weight, and a false affirmation exposes you to the same penalties for perjury.
Do I have to explain why I want to affirm? No. The court will not ask, and the choice carries no implication about your credibility.
Can I affirm a document as well as evidence in the witness box? Yes. An affidavit may be affirmed rather than sworn, and is then usually described as an affirmation.