Skip to content

Commit 4f3c3fc

Browse files
authored
scripting_player_input.rst: fix small inaccuracy about conditionals (#10573)
* scripting_player_input.rst: fix small inaccuracy about conditionals
1 parent 0c74e78 commit 4f3c3fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

getting_started/step_by_step/scripting_player_input.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ which the player wants to turn. A value of ``0`` means the player isn't pressing
6161
the left or the right arrow key. A value of ``1`` means the player wants to turn
6262
right, and ``-1`` means they want to turn left.
6363

64-
To produce these values, we introduce conditions and the use of ``Input``. A
65-
condition starts with the ``if`` keyword in GDScript and ends with a colon. The
66-
condition is the expression between the keyword and the end of the line.
64+
To produce these values, we introduce conditional statements and the use of ``Input``.
65+
A conditional statement starts with the ``if`` keyword in GDScript and ends with a colon. The
66+
condition is specifically the expression between the keyword and the colon at
67+
the end of the line.
6768

6869
To check if a key was pressed this frame, we call ``Input.is_action_pressed()``.
6970
The method takes a text string representing an input action and returns ``true``

0 commit comments

Comments
 (0)