Merge remote-tracking branch 'origin/6.1'
[scilab.git] / scilab / modules / core / help / ru_RU / 2_control_flow / else.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2008 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <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="ru" xml:id="else">
17     <refnamediv>
18         <refname>else</refname>
19         <refpurpose>ключевое слово в if-then-else и select-case-then-else</refpurpose>
20     </refnamediv>
21     <refsection>
22         <title>Описание</title>
23         <para>
24             Используется с <literal>if</literal> и <literal>select</literal>.
25         </para>
26     </refsection>
27     <refsection>
28         <title>Пример</title>
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("Истина");
41    case %f then
42       disp("Ложь");
43    else
44       disp("Третий вариант");
45 end
46      ]]></programlisting>
47     </refsection>
48     <refsection role="see also">
49         <title>Смотрите также</title>
50         <simplelist type="inline">
51             <member>
52                 <link linkend="elseif">elseif</link>
53             </member>
54             <member>
55                 <link linkend="if">if</link>
56             </member>
57             <member>
58                 <link linkend="select">select</link>
59             </member>
60             <member>
61                 <link linkend="and_op">&amp;, &amp;&amp;</link>
62             </member>
63             <member>
64                 <link linkend="or_op">|, ||</link>
65             </member>
66         </simplelist>
67     </refsection>
68     <refsection role="history">
69         <title>История</title>
70         <revhistory>
71             <revision>
72                 <revnumber>6.0.0</revnumber>
73                 <revdescription>
74                   <literal>else</literal> is now protected:
75                   Assignments like <literal>else=1</literal> are no longer possible.
76                 </revdescription>
77             </revision>
78         </revhistory>
79     </refsection>
80 </refentry>