Xcos load: use a valid port type value
[scilab.git] / scilab / modules / core / help / ru_RU / 2_control_flow / end.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="ru" xml:id="end">
3     <refnamediv>
4         <refname>end</refname>
5         <refpurpose>ключевое слово конца конструкции</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>Описание</title>
9         <para>
10             Используется в конце конструкций циклов или условий.
11             Конструкции <literal>for</literal>, <literal>while</literal>, <literal>if</literal>, <literal>select</literal> 
12             должны заканчиваться ключевым словом <literal>end</literal>.
13         </para>
14     </refsection>
15     <refsection>
16         <title>Примеры</title>
17         <programlisting role="example"><![CDATA[
18 a=42
19 if a==42 then
20    disp("Ответ на все вопросы.")
21 end
22
23 i = 0
24 while i<5
25    disp("i");
26    i = i + 1;
27 end
28
29 n=5;
30 for i = 1:n
31     for j = 1:n
32         a(i,j) = 1/(i+j-1);
33     end;
34 end
35
36  ]]></programlisting>
37     </refsection>
38     <refsection role="see also">
39         <title>Смотрите также</title>
40         <simplelist type="inline">
41             <member>
42                 <link linkend="for">for</link>
43             </member>
44             <member>
45                 <link linkend="while">while</link>
46             </member>
47             <member>
48                 <link linkend="if">if</link>
49             </member>
50             <member>
51                 <link linkend="select">select</link>
52             </member>
53         </simplelist>
54     </refsection>
55 </refentry>