The official text
Old and new, side by side
Indian Penal Code, 1860
Section 398 Attempt to commit robbery or dacoity when armed with deadly weapon
If, at the time of attempting to commit robbery or dacoity, the offender is armed with any deadly weapon, the imprisonment with which such offender shall be punished shall not be less than seven years.
Bharatiya Nyaya Sanhita, 2023
Section 312 Attempt to commit robbery or dacoity when armed with deadly weapon
If, at the time of attempting to commit robbery or dacoity, the offender is armed with any deadly weapon, the imprisonment with which such offender shall be punished shall not be less than seven years.
The texts are India Code’s. The amendment markers and footnotes of the official print are left out, so the old section reads as it stood when it was repealed; State amendments are not shown. The PDFs linked below carry the full history.