referents has key

operator

Return type:
Switch
Returns:
Returns true if the referent exists, false otherwise. Replacing is with isnt will reverse the results.
Syntax
referents (has | hasnt) key string-expression


Purpose

A test to see if a particular referent exists within the current referents scope.

The string expression is the string giving the name of the referent. This test succeeds if one of the items in the referents shelf has a name equal to string-expression, and fails otherwise. hasnt will reverse the results of the test.

A referent will have an entry on the referents shelf if it has been:

Related Syntax