I know how, by Amp\grave{e}re's Law for the loop integral of a magnetic field, $$\oint_C \textbf B \cdot d \textbf s = \mu_0 I$$ and this is zero when there is no current enclosed in the loop; there is a nonzero result when there is a current.
With Cauchy's Integral Theorem, if a function is...