The alternating tensor, also known as Levi-Civita symbol is defined by
Thus
If any index is repeated then the value is zero, e.g.,
If any two indices are interchanged then the sign changes, e.g.,