I would like to produce elements (preferably by Table or For-If commands) that they belong to specific sets. For example I want to write positive integers from 1 to 100 such that they are $2 \pmod 3$, $3,\, 5$ or $6 \pmod 7$ or $7,\,8$ or $10 \pmod {11}$.
I wrote the following code but it was not correct.
A1={2};
A2={3,5,6};
A3={7,8,10};
Union[Flatten[Table[If[(Element[Mod[i,3],A1]
||Element[Mod[i,7],A2]||Element[Mod[i, 11], A3]), i, 0], {i, 1, 100}]]]