~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/core/help/pt_BR/variables/isdef.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<!--
 
3
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
4
 * Copyright (C) 2008 - INRIA
 
5
 * 
 
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
 
11
 *
 
12
 -->
 
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">
 
14
    <refnamediv>
 
15
        <refname>isdef</refname>
 
16
        <refpurpose>verifica exist�ncia de vari�veis</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Seq��ncia de Chamamento</title>
 
20
        <synopsis>isdef(name [,where])</synopsis>
 
21
    </refsynopsisdiv>
 
22
    <refsection>
 
23
        <title>Par�metros</title>
 
24
        <variablelist>
 
25
            <varlistentry>
 
26
                <term>name</term>
 
27
                <listitem>
 
28
                    <para>um string </para>
 
29
                </listitem>
 
30
            </varlistentry>
 
31
            <varlistentry>
 
32
                <term>where</term>
 
33
                <listitem>
 
34
                    <para>um string opcional com valor padr�o 'all' (todos os locais)
 
35
                    </para>
 
36
                </listitem>
 
37
            </varlistentry>
 
38
        </variablelist>
 
39
    </refsection>
 
40
    <refsection>
 
41
        <title>Descri��o</title>
 
42
        <para>
 
43
            <literal>isdef(name)</literal> retorna <literal>%T</literal> se a
 
44
            vari�vel <literal>name</literal> existe e <literal>%F</literal> em caso
 
45
            contr�rio.
 
46
        </para>
 
47
        <para>
 
48
            Aviso: uma fun��o que utiliza <literal>isdef</literal> pode retornar
 
49
            um resultado que depende do ambiente!
 
50
        </para>
 
51
        <para>
 
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.
 
55
        </para>
 
56
        <para>
 
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.
 
61
        </para>
 
62
    </refsection>
 
63
    <refsection>
 
64
        <title>Exemplos</title>
 
65
        <programlisting role="example"><![CDATA[ 
 
66
A=1;
 
67
isdef('A')
 
68
clear A
 
69
isdef('A')
 
70
 
 
71
function level1()
 
72
  function level2()
 
73
    disp(isdef("a","all"));
 
74
    disp(isdef("a","local"));
 
75
    disp(isdef("a","nolocal"));
 
76
  endfunction
 
77
  level2()
 
78
endfunction
 
79
function go()
 
80
  a=1;
 
81
  level1()
 
82
endfunction
 
83
go()
 
84
 ]]></programlisting>
 
85
    </refsection>
 
86
    <refsection role="see also">
 
87
        <title>Ver Tamb�m</title>
 
88
        <simplelist type="inline">
 
89
            <member>
 
90
                <link linkend="exists">exists</link>
 
91
                <link linkend="isglobal">isglobal</link>
 
92
            </member>
 
93
            <member>
 
94
                <link linkend="whereis">whereis</link>
 
95
            </member>
 
96
            <member>
 
97
                <link linkend="type">type</link>
 
98
            </member>
 
99
            <member>
 
100
                <link linkend="typeof">typeof</link>
 
101
            </member>
 
102
            <member>
 
103
                <link linkend="clear">clear</link>
 
104
            </member>
 
105
        </simplelist>
 
106
    </refsection>
 
107
</refentry>