Semicolon in GDScript

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

I saw some code on GitHub and I saw that the guy used semicolons at the end of the function calls and I wanted to know if it really works and could I use it in my projects?

:bust_in_silhouette: Reply From: Dlean Jeans

Yes, semicolon works and it’s optional just like in Python. You can use it to write multiple statements on a single line of code.

Yes, pretty much like in C++ as well. Some people can paste C++ implementation directly to Godot script editor and edit it there without removing semicolons. :slight_smile:

Xrayez | 2019-05-25 11:54