summaryrefslogtreecommitdiffhomepage
path: root/gdscript.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'gdscript.html.markdown')
-rw-r--r--gdscript.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdscript.html.markdown b/gdscript.html.markdown
index 550a874e..0bfac26a 100644
--- a/gdscript.html.markdown
+++ b/gdscript.html.markdown
@@ -114,6 +114,9 @@ func control_flow():
for i in range(20): # GDScript's range is similar to Python's
print(i) # so this will print numbers from 0 to 19
+ for i in 20: # unlike Python, you can loop over an int directly
+ print(i) # so this will also print numbers from 0 to 19
+
for i in ["two", 3, 1.0]: # iterating over an array
print(i)