Here's an example: Table[If[j != i, 1/(j - i), 0], {i, 1, 5}]
It produces a result where i is not assigned a value and left as i. How can I make it work?
I found the way out: I must put Evaluate[1/(j - i)]