colobot-data/help/R/cbot/continue.txt

26 lines
928 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

\b;Инструкция \c;continue\n;
Синтаксис :
\s;\c;while ( условие )
\s;{
\s; continue;
\s;}
\n;
С помощью этой инструкции, вы можете перепрыгивать через все остальные инструкции в \c;\l;блоке\u cbot\bloc;\n; цикла \c;\l;while\u cbot\while;\n; или \c;\l;for\u cbot\for;\n; : Выполнение продолжится с начала блока, в следующий раз цикл будет повторен.
вот пример:
\s;\c;int i = 0;
\s;while ( i < 5 )
\s;{
\s; i = i+1;
\s; if ( i == 3 )
\s; {
\s; continue;
\s; }
\s; \n;Инструкции...\c;
\s;}
\n;
Инструкции будут выполнены только для значение \c;i\n; 1, 2, 4 и 5.
\t;См. также
\l;Программирование\u cbot;, \l;типы\u cbot\type; и \l;категории\u cbot\category;.