21. (1) Where an officer or a petty or non-commissioned officer of any naval or air force of Sri Lanka is attached to, or is a member of any naval or air force of Sri Lanka which is acting with, any part of the army under such conditions as may be prescribed, then, for the purposes of command and discipline and for the purposes of the provisions of this Act relating to superior officers, he shall, in relation to that part of the army, be treated as, and have all the powers (other than the powers of punishment) vested in, an officer or a non-commissioned officer of the army as the case may be.
(2) Where an officer or a soldier of the army is attached to, or is a member of any part of the army acting with, any naval or air force of Sri Lanka under such conditions as may be prescribed, then, for the purposes of command and discipline and for the purposes of the provisions of this Act relating to superior officers, the officers and the petty or non-commissioned officers of such force shall, in relation to him, be treated as, and have all the powers (other than the powers of punishment) vested in, officers or non-commissioned officers of the army as the case may be. *Relations between military and naval and air forces of Sri Lanka acting together.*