Recategorize some files
[scilab.git] / scilab / modules / core / help / en_US / 2_control_flow / else.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="en" xml:id="else">
3     <refnamediv>
4         <refname>else</refname>
5         <refpurpose>keyword in if-then-else and select-case-then-else</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>Description</title>
9         <para>
10             Used with <literal>if</literal> and <literal>select</literal>.
11         </para>
12     </refsection>
13     <refsection>
14         <title>Examples</title>
15         <programlisting role="example"><![CDATA[ 
16 val = %t
17
18 if val==%t then
19     disp("true");
20 else
21     disp("false");
22 end
23
24 select val
25    case %t then
26       disp("true");
27    case %f then
28       disp("false");
29    else
30       disp("a third variant");
31 end 
32      ]]></programlisting>
33     </refsection>
34     <refsection role="see also">
35         <title>See Also</title>
36         <simplelist type="inline">
37             <member>
38                 <link linkend="if">if</link>
39             </member>
40             <member>
41                 <link linkend="select">select</link>
42             </member>
43         </simplelist>
44     </refsection>
45 </refentry>