From f7cfd22af4a9bd22d7d4c85236a0882998a4a31f Mon Sep 17 00:00:00 2001 From: Pawel Kowal Date: Tue, 7 Feb 2017 16:01:21 +0100 Subject: [PATCH] for statement iterating through String characters --- reference/gdscript.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/gdscript.rst b/reference/gdscript.rst index 8f7cacbf..819c3459 100644 --- a/reference/gdscript.rst +++ b/reference/gdscript.rst @@ -696,6 +696,8 @@ in the loop variable. for i in range(2,8,2): statement # similar to [2, 4, 6] but does not allocate an array + for c in "Hello": + print(c) # iterate through all characters in a String, print every letter on new line match ^^^^^