1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="exists"> checks variable existence</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>exists(name [,where]) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>name</PARAM_NAME>
17
<SP>: a character string</SP>
21
<PARAM_NAME>where</PARAM_NAME>
23
<SP>: an optional character string with default value <VERB>'all'</VERB></SP>
29
<P><VERB>exists(name)</VERB> returns <VERB>1</VERB> if the variable named <VERB>name</VERB>
30
exists and <VERB>0</VERB> otherwise.</P>
32
Caveats: a function which uses <VERB>exists</VERB> may return a result which depends on the environment!</P>
33
<P><VERB>exists(name,'local')</VERB> returns <VERB>1</VERB> if the variable named
34
<VERB>name</VERB> exists in the local environment of the current function and
35
<VERB>0</VERB> otherwise.</P>
40
['disp([exists(''a12''),exists(''a12'',''local'')])'
41
'disp([exists(''x''),exists(''x'',''local'')])'])