Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Information and Control
See also: existglobal

Function: exist
Description: Exist tries to find out whether the input object exists or not. If the object exists, the type of the object is given in the output window.

Usage: r = exist ("name")
Input:
name object name
Output:
r scalar

Note:

Example:
x = matrix(2,4)
exist("x")
z = createdisplay(1,1)
exist("z")
exist("y")

Result:
Contents of exist
[1,]       1       ; because x is numeric

Contents of exist
[1,]       4       ; because z a display

Contents of exist
[1,]       -1	   ; because y is not defined



(C) MD*TECH Method and Data Technologies, 05.02.2006