japanese translation updated.
[scilab.git] / scilab / modules / core / help / ja_JP / variables / exists.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="exists" xml:lang="ja">
4     
5     <refnamediv>
6         
7         <refname>exists</refname>
8         
9         <refpurpose>変数の存在を確認する</refpurpose>
10         
11     </refnamediv>
12     
13     <refsynopsisdiv>
14         
15         <title>呼出し手順</title>
16         
17         <synopsis>ve = exists(name [,where])</synopsis>
18         
19     </refsynopsisdiv>
20     
21     <refsection>
22         
23         <title>引数</title>
24         
25         <variablelist>
26             
27             <varlistentry>
28                 
29                 <term>ve</term>
30                 
31                 <listitem>
32                     
33                     <para>
34                         
35                         <varname>name</varname>と同じ大きさの行列で,
36                         
37                         使用される値は:
38                         
39                         <literal>1</literal> (trueの場合), 
40                         
41                         <literal>0</literal> (falseの場合)
42                         
43                     </para>
44                     
45                 </listitem>
46                 
47             </varlistentry>
48             
49             <varlistentry>
50                 
51                 <term>name</term>
52                 
53                 <listitem>
54                     
55                     <para>文字列の行列</para>
56                     
57                 </listitem>
58                 
59             </varlistentry>
60             
61             <varlistentry>
62                 
63                 <term>where</term>
64                 
65                 <listitem>
66                     
67                     <para>
68                         
69                         オプションの文字で,以下の値を指定します:
70                         
71                         <literal>'l'</literal> (local), <literal>'n'</literal>
72                         
73                         (nolocal) および <literal>'a'</literal> (all). 
74                         
75                         デフォルト値は<literal>'a'</literal>です.
76                         
77                     </para>
78                     
79                 </listitem>
80                 
81             </varlistentry>
82             
83         </variablelist>
84         
85     </refsection>
86     
87     <refsection>
88         
89         <title>説明</title>
90         
91         <para>
92             
93             <literal>exists(name)</literal> は,
94             
95             <literal>name</literal>という名前の変数が存在する場合に
96             
97             <literal>1</literal>,それ以外の場合に<literal>0</literal>を返します.
98             
99               
100             
101         </para>
102         
103         <para>
104             
105             注意: <literal>exists</literal> を使用する関数は,
106             
107             環境に依存する結果を返す可能性があります!
108             
109         </para>
110         
111         <para>
112             
113             <literal>exists(name,'l')</literal> は,
114             
115             <literal>name</literal>という名前の変数がカレントの関数の
116             
117             環境に存在する場合に <literal>1</literal>,
118             
119             それ以外の場合に <literal>0</literal> を返します.
120             
121         </para>
122         
123         <para>
124             
125             <literal>exists(name,'n')</literal> は,
126             
127             <literal>name</literal>という名前の変数が関数の呼び出し元の
128             
129             環境(Scilabシェルメインレベルを含む)に存在する場合に <literal>1</literal>,
130             
131             それ以外の場合に <literal>0</literal> を返します.
132             
133         </para>
134         
135         <para>
136             
137             警告: <literal>exists</literal>関数は,ある変数が
138             
139             <link linkend="global">グローバル</link>
140             
141             名前空間に存在するかどうかを確認しません.
142             
143         </para>
144         
145     </refsection>
146     
147     <refsection>
148         
149         <title>例</title>
150         
151         <programlisting role="example"><![CDATA[
152 exists("myNotLikelyToExistVar")
153 myNotLikelyToExistVar = 1;
154 exists("myNotLikelyToExistVar")
155  ]]></programlisting>
156         
157         <programlisting role="example"><![CDATA[ 
158 deff('foo(x)',..
159 ['disp([exists(''a12''),exists(''a12'',''l'')])'
160  'disp([exists(''x''),exists(''x'',''l'')])'])
161 foo(1)
162 a12=[];foo(1)
163
164 function level1()
165   function level2()
166     disp(exists(["a","b"],"a"));
167     disp(exists(["a","b"],"l"));
168     disp(exists(["a","b"],"n"));
169   endfunction
170   level2()
171 endfunction
172 function go()
173   a=1;
174   level1()
175 endfunction
176 go()
177  ]]></programlisting>
178         
179     </refsection>
180     
181     <refsection role="see also">
182         
183         <title>参照</title>
184         
185         <simplelist type="inline">
186             
187             <member>
188                 
189                 <link linkend="isdef">isdef</link>
190                 
191             </member>
192             
193             <member>
194                 
195                 <link linkend="isglobal">isglobal</link>
196                 
197             </member>
198             
199             <member>
200                 
201                 <link linkend="whereis">whereis</link>
202                 
203             </member>
204             
205             <member>
206                 
207                 <link linkend="type">type</link>
208                 
209             </member>
210             
211             <member>
212                 
213                 <link linkend="typeof">typeof</link>
214                 
215             </member>
216             
217             <member>
218                 
219                 <link linkend="macrovar">macrovar</link>
220                 
221             </member>
222             
223         </simplelist>
224         
225     </refsection>
226     
227 </refentry>
228