1
<?xml version="1.0" encoding="ISO-8859-1"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="isdef" xml:lang="en">
15
<refname>isdef</refname>
16
<refpurpose>verifica exist�ncia de vari�veis</refpurpose>
19
<title>Seq��ncia de Chamamento</title>
20
<synopsis>isdef(name [,where])</synopsis>
23
<title>Par�metros</title>
28
<para>um string </para>
34
<para>um string opcional com valor padr�o 'all' (todos os locais)
41
<title>Descri��o</title>
43
<literal>isdef(name)</literal> retorna <literal>%T</literal> se a
44
vari�vel <literal>name</literal> existe e <literal>%F</literal> em caso
48
Aviso: uma fun��o que utiliza <literal>isdef</literal> pode retornar
49
um resultado que depende do ambiente!
52
<literal>isdef(name,'local')</literal> retorna <literal>%T</literal>
53
se a vari�vel <literal>name</literal> existe no ambiente local da fun��o
54
corrente e <literal>%F</literal> em caso contr�rio.
57
<literal>isdef(name,'nolocal')</literal> retorna
58
<literal>%T</literal> se a vari�vel <literal>name</literal> existe no
59
ambiente de chamada completo (incluindo o n�vel global) da fun��o corrente
60
e <literal>%F</literal> em caso contr�rio.
64
<title>Exemplos</title>
65
<programlisting role="example"><![CDATA[
73
disp(isdef("a","all"));
74
disp(isdef("a","local"));
75
disp(isdef("a","nolocal"));
86
<refsection role="see also">
87
<title>Ver Tamb�m</title>
88
<simplelist type="inline">
90
<link linkend="exists">exists</link>
91
<link linkend="isglobal">isglobal</link>
94
<link linkend="whereis">whereis</link>
97
<link linkend="type">type</link>
100
<link linkend="typeof">typeof</link>
103
<link linkend="clear">clear</link>