P.S. Select description in help is old and incorrect:
On the recent SP you can even use multiple members condition like "[ID]=MEM1,MEM2,MEM3"
And for sure you can use AND and OR to combine criteria...
But you can't use SELECT inside FOR/NEXT loop - it will be calculated only once before the loop processing.
B.R. Vadim