update japanese translation of core module.
[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'および'select'のキーワード</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>説明</title>
9         <para>
10           制御フロー<literal>if</literal>および<literal>select</literal>において
11           使用されます.
12           各<literal>then</literal>キーワードは,
13           <literal>if</literal>, <literal>elseif</literal> または
14           <literal>case</literal>キーワードと同じ行に置く必要があります.
15         </para>
16         <para>
17           キーワード<literal>then</literal> はキャレッジリターンまたはカンマで
18           置換できます.
19         </para>
20     </refsection>
21     <refsection>
22         <title>例</title>
23         <programlisting role="example"><![CDATA[
24 if 2*2 == 4 then
25    disp("It works")
26 end
27
28 n=round(10*rand(1,1))
29 select n
30     case 0 then
31         disp(0)
32     case 1 then
33         disp(1)
34     else
35       disp(n);
36 end
37         ]]></programlisting>
38     </refsection>
39     
40     <refsection role="see also">
41         <title>参照</title>
42         <simplelist type="inline">
43             <member>
44                 <link linkend="if">if</link>
45             </member>
46             <member>
47                 <link linkend="elseif">elseif</link>
48             </member>
49             <member>
50                 <link linkend="select">select</link>
51             </member>
52             <member>
53                 <link linkend="case">case</link>
54             </member>
55         </simplelist>
56     </refsection>
57 </refentry>