MongooseWhere programmers kick back and build silly things together.

All help topics · Link to this topic

Showing help on 'isa()'

Syntax: isa(OBJ <object>, OBJ <parent>)
isa(OBJ <object>, LIST <parent list> [, INT <return_parent>])

Returns true if <object> is a descendant of <parent>, otherwise false.

If a third argument is present and true, the return value will be the first parent that object1 descends from in the <parent list>.

isa(#2, $wiz) => 1
isa(#2, {$thing, $wiz, $container}) => 1
isa(#2, {$thing, $wiz, $container}, 1) => #57 (generic wizard)
isa(#2, {$thing, $room, $container}, 1) => #-1 <$nothing>