e1ca8f1ae1245484d1e9392372d107d63107ee51
[scilab.git] / scilab / modules / core / help / ja_JP / 2_control_flow / then.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="then">
3     <refnamediv>
4         <refname>then</refname>
5         <refpurpose>if-then-elseのキーワード</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>説明</title>
9         <para>
10             <literal>if</literal>と共に使用されます.
11         </para>
12     </refsection>
13     <refsection>
14         <title>Examples</title>
15         <programlisting role="example"><![CDATA[
16 if 2*2 == 4 then
17    disp("It works")
18 end
19 n=round(10*rand(1,1))
20 select n
21     case 0 then
22         disp(0)
23     case 1 then
24         disp(1)
25     else
26       disp(n);
27 end
28         ]]></programlisting>
29     </refsection>
30     <refsection role="see also">
31         <title>参照</title>
32         <simplelist type="inline">
33             <member>
34                 <link linkend="if">if</link>
35             </member>
36         </simplelist>
37     </refsection>
38 </refentry>