Xcos load: use a valid port type value
[scilab.git] / scilab / modules / core / help / ja_JP / 2_control_flow / else.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="else">
4     
5     <refnamediv>
6         
7         <refname>else</refname>
8         
9         <refpurpose>if-then-elseおよびselect-case-then-elseのキーワード</refpurpose>
10         
11     </refnamediv>
12     
13     <refsection>
14         
15         <title>説明</title>
16         
17         <para>
18             
19             <literal>if</literal>および<literal>select</literal>で使用されます.
20             
21         </para>
22         
23     </refsection>
24     
25     <refsection>
26         
27         <title>例</title>
28         
29         <programlisting role="example"><![CDATA[ 
30 val = %t
31
32 if val==%t then
33     disp("true");
34 else
35     disp("false");
36 end
37
38 select val
39    case %t then
40       disp("true");
41    case %f then
42       disp("false");
43    else
44       disp("a third variant");
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