The GAS valve should be before the dirt leg (drip leg) on a natural gas water heater but can it be installed below the dirt leg? I can't find if this is a violation but it does not make sense to have the valve lower than the leg!
pc1
pc1