.DT
test_remove
Discworld object help
test_remove
.SH Name
.SI 5
test_remove - Is this object allowed out?
.EI
.SH Syntax
.SI 5
int test_remove(object ob, int flag, mixed dest);
.EI
.SH Description
.SP 5 5
This function tests to see whether the object `ob' is allowed to be removed
from the container it is in and put in `dest'.  If it returns 1, then leaving
is possible else it is blocked.  The `flag' is the value of the move flag as
set by set_get and reset_get.  This is 1 if reset_drop is called.  `dest' is
either the filename of the destination or the actual destination.
.EP
.SH Examples:
.SI 5
/* This is a very simple test */
int test_remove(object ob, int flag, mixed dest) {
   return !flag;
} /* test_remove() */
.EI
.SH See also
.SP 5 5
test_add, move, set_drop, reset_drop
.EP