ID:164704
 
I'm using the following code for shopping:

        for(var/mob/I in oview(1))
statpanel("Shop")
stat(I.contents)
canshop=1


While it does work fine, I'm trying to figure out how I would set canshop to 0 if you var/mob/I is not in oview(1). I've tried !oview(1) which doesn't work. Any help would be appreciated.
I tried using Exit() and the Exited() proc but it says that it won't allow a proc definition inside of another proc. I still need some help. >_<