Skip to content

Commit

Permalink
until, rangeto, downto: readme rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
GassaFM committed Mar 11, 2024
1 parent dc4acf3 commit eb26852
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,9 @@ It first assigns the value of expression `<start>` to variable `<name>`.
Then, as long as `<name>` is strictly less than the value of expression `<finish>`,
the statements are executed from top to bottom, the variable is increased by one,
and the condition is evaluated again.
You can also write `rangeto`/`downto` instead of `until`.
Then, as long as `<name>` is not strictly less/more respectively, the value of the expression `<finish>`,
the statements are executed from top to bottom, the variable is increased/decreased, respectively, by one,
and the condition is evaluated again.
Instead of `until`, you can also use `rangeto`
to include the upper bound in the loop, or `downto`
to make the loop go from `<start>` to `<finish>` inclusive in descending order.

### Expressions

Expand Down
9 changes: 4 additions & 5 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,10 @@ function <name> (<arg1>, <arg2>, ...):
переменной с именем `<name>`.
Затем, пока `<name>` строго меньше значения выражения `<finish>`,
команды выполняются сверху вниз, значение переменной увеличивается на единицу,
после чего условие проверяется снова.
Также вы можете написать `rangeto`/`downto` вместо `until`.
Затем, пока `<name>` нестрого меньше/больше соответственно, значения выражения `<finish>`,
команды выполняются сверху вниз, значение переменной увеличивается/уменьшается соответственно, на единицу,
после чего условие проверяется снова.
после чего условие проверяется снова.
Вместо `until` можно использовать `rangeto`,
чтобы верхняя граница включалась в цикл, или `downto`,
чтобы цикл шёл от `<start>` до `<finish>` включительно в порядке убывания.

### Выражения

Expand Down

0 comments on commit eb26852

Please sign in to comment.