A new criterion for the metallicity of elements