ID:155071
 
while(T in view(1,src))


How do make this so that it keeps doing whatever while the obj T is NOT in view of src. Basically i just want it so that, as soon as the obj is 1 space away from src, the while loop stops.

Please help, thanks in advance.
while(!(T in view(1,src)))

In response to Megablaze
thank you very much, i knew i had to place that operator, but i didn't know where or how.