Conditions on indices: iIin2nfi\sum\limits_{\substack{i \in I \\ i \neq \frac{n}{2}}}^n f_i , i=0nj=0jimfi,j\sum\limits_{i=0}^n \sum\limits_{\substack{j = 0 \\ j \neq i}}^m f_{i,j}, ...

Sometimes, you will see conditions added to iteration variables. These are generally written below the initial index and may use any kind of statement, that must be true. If it isn't true, then the index is skipped. Usually, these conditions are not very complicated and often even allow for a way to calculate these indices without explicitly going over each value.

The general form will look something like this:

i=0p(i)nfi\sum\limits_{\substack{i = 0 \\ \operatorname{p}(i)}}^n f_i

Here, p\operatorname{p} is any condition, for example mod(i,2)=0\operatorname{mod}(i,2) = 0.

Code i=0p(i)nfi\sum\limits_{\substack{i = 0 \\ \operatorname{p}(i)}}^n f_i: