Whenever an oath is required by this Code, the affirmation of a person, conscientiously scrupulous of taking an oath shall have the same effect.
R.L. 1910, § 5340.