Recategorize some files
[scilab.git] / scilab / modules / core / help / ja_JP / 2_control_flow / elseif.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: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="elseif">
4     
5     <refnamediv>
6         
7         <refname>elseif</refname>
8         
9         <refpurpose>if-then-elseのキーワード</refpurpose>
10         
11     </refnamediv>
12     
13     <refsection>
14         
15         <title>説明</title>
16         
17         <para>
18             
19             条件が複数ある場合,キーワード<literal>elseif</literal>
20             
21             が便利です.
22             
23             複数の<literal>elseif</literal>がある場合,
24             
25             最初にtrue条件となったものが選択されます(他のものがtrueの場合でも).
26             
27         </para>
28         
29     </refsection>
30     
31     <refsection>
32         
33         <title>例</title>
34         
35         <programlisting role="example"><![CDATA[ 
36 a=1;
37 if a==1 then
38     disp("a equals 1")
39 elseif a==2 then
40     disp("a equals 2")
41 elseif a==1 & a>0 then
42     disp("this condition is true, but never will be selected, because it is the second true condition.")
43 else
44     disp("Case not handled.")
45 end
46      ]]></programlisting>
47         
48     </refsection>
49     
50     <refsection role="see also">
51         
52         <title>参照</title>
53         
54         <simplelist type="inline">
55             
56             <member>
57                 
58                 <link linkend="if">if</link>
59                 
60             </member>
61             
62             <member>
63                 
64                 <link linkend="select">select</link>
65                 
66             </member>
67             
68         </simplelist>
69         
70     </refsection>
71     
72 </refentry>
73