Prev: type

valid

valid(data)
This function returns 1 if data is a dbref and is valid, or 0 otherwise. A dbref is valid if it refers to an object that exists in the database.

Examples:

valid(#0)
     => 1
valid('foo)
     => 0