Translations by theadmin

theadmin has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.

116 of 16 results
1.
Conditional Statements
2014-09-22
Условные операторы
2.
Ren'Py includes several statements that can alter control flow based on expression values. (This is in addition to the :ref:`jump <jump-statement>`, :ref:`call <call-statement>` and :ref:`return <return-statement>` statements, which transfer control unconditionally.
2014-09-22
Ren'Py вклюает несколько операторов, изменяющих поток программы в зависимости от выражений. Это дополняет выражения :ref:`jump <jump-statement>`, :ref:`call <call-statement>` и :ref:`return <return-statement>`, изменяющих поток безусловно.
3.
Note that is pages discusses statements that can be used inside Ren'Py script. Python code embedded in a Ren'Py game uses the Python while, if, and for statements, but can't embed Ren'Py script code.
2014-09-22
Следует заметить, что эта страница обсуждает операторы, используемые языком Ren'Py. Код на Python, встроенный в игры Ren'Py, должен использовать операторы Python (while, if и for).
4.
If Statement
2014-09-22
Оператор Если
5.
The if statement conditionally executes a block of code if a python expression is true. It consists of an ``if`` clause, zero or more ``elif`` clauses, and an optional``else`` clause.
2014-09-22
Оператор if выполняет блок кода, если представленное выражение Python истинно. Он содержит ровно один ``if``, ноль или более ``elif`` и один необязательный ``else``.
6.
Each clause should be on its own logical line, followed by a block of statements. The ``if`` and ``elif`` clauses are followed by an expression, while all clauses end with a colon. (:)
2014-09-22
Каждая часть оператора должна находится на своей линии, и за ней должен следовать блок операторов. После ``if`` и ``elif`` следует выражение. Все части оператора заканчиваются двоеточием. (:)
7.
Examples are::
2014-09-22
Примеры::
8.
The expressions in the if statement are evaluated in order, from first to last. When an expression evaluates to true, the block corresponding to that statement is executed. When control reaches the end of the block, it proceeds to the statement following the if statement.
2014-09-22
Выражения в операторе if исследуются по порядку, с первого до последнего. Когда выражение является истинным, соответствующией ему блок выполняется. Когда управление достигает конца блока, оно переходит к части оператора if, следующей за ним.
9.
If all expressions evaluate to false, the block associated with the ``else`` clause is executed, if the ``else`` clause is present.
2014-09-22
Если все выражения ложны, блок, связанный с ``else`` будет выполнен, если ``else`` присутствует.
10.
While Statement
2014-09-22
Оператор Пока
11.
The while statement executes a block of code while an expression evaluates true. For example::
2014-09-22
Оператор while выполняет блок кода, пока какое-либо выражение является истинным. Например::
12.
The expression is evaluated when while statement is first reached, and then each time control reaches the end of the block. When the expression return a false value, the statement after the while statement is executed.
2014-09-22
Выражение вычисляется при первом просмотре оператора while, а затем снова, когда управление достигнет конца блока. Когда выражение станет ложным, оператор, находящийся после оператора while, будет выполнен.
13.
Ren'Py does not have continue, break, or for statements. Continue and break statements can be replaced by jumps to labels placed before or after the while loop, respectively. The first example of a while loop, above, shows how a while loop can replace a for statement.
2014-09-22
Ren'Py не содержит операторов "continue", "break" или "for". Операторы continue и break заменимы прыжками к меткам находящимся, соответственно, до или после цикла. Первый пример цикла while (см. выше) показывает, как заменить оператор for.
14.
Pass Statement
2014-09-22
Оператор pass
15.
The pass statement can be used when a block is required, but no statement is suitable. It does nothing.
2014-09-22
Оператор pass можно использовать, когда необходим блок, но нет оператора, который необходимо выполнить в этом блоке. Он ничего не делает.
16.
For example::
2014-09-22
Например::