Ed Wagner (8/5/2015)
Didn't even notice the position outside the While loop. The fact that the variable is set to 1 on the previous line means that even if it were within the loop the answer would be the same.
That's the way I saw it, too.
Me three. Didn't even look at the loop.
Yeah, I missed that too. It must be a better question than I thought. 😉 Thanks.
Good point. Initially, I saw the case where Setting the variable is outside the loop and Print is inside the loop. It could make more sense if I put outside loop like this:
If @BitToggle=0 Print 'Variable @BitToggle toggled'
SET @BitToggle = 1
Every thought is a cause and every condition an effect