Loops/Continue: Difference between revisions

GDScript
m (Update lang example: Improve control flow statements)
(GDScript)
Line 1,100:
# 1, 2, 3, 4, 5
# 6, 7, 8, 9, 10</syntaxhighlight>
 
=={{header|GDScript}}==
{{works with|Godot|4.0.1}}
{{trans|11l}}
 
<syntaxhighlight lang="gdscript">
extends MainLoop
 
 
func _process(_delta: float) -> bool:
for i in range(1,11):
if i % 5 == 0:
print(i)
continue
printraw(i, ", ")
 
return true # Exit
</syntaxhighlight>
 
 
=={{header|GML}}==
89

edits