|
27.
|
|
|
Most statements in the Ren'Py language consist of a single logical line, while some statements consist of multiple lines.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:112
|
|
28.
|
|
|
Empty logical lines are ignored.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:125
|
|
29.
|
|
|
Indentation and Blocks
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:129
|
|
30.
|
|
|
:dfn:`Indentation` is the name we give to the space at the start of each logical line that's used to line up Ren'Py statements. In Ren'Py, indentation must consist only of spaces.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:131
|
|
31.
|
|
|
Indentation is used to group statements into :dfn:`blocks`. A block is a group of lines, and often a group of statements. The rules for dividing a file into blocks are:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:135
|
|
32.
|
|
|
A block is open at the start of a file.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:139
|
|
33.
|
|
|
A new block is started whenever a logical line is indented past the previous logical line.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:141
|
|
34.
|
|
|
All logical lines inside a block must have the same indentation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:144
|
|
35.
|
|
|
A block ends when a logical line is encountered with less indentation than the lines in the block.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:146
|
|
36.
|
|
|
Indentation is very important to Ren'Py, and cause syntax or logical errors when it's incorrect. At the same time, the use of indentation to convey block structure provides us a way of indicating that structure without overwhelming the script text.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:149
|