Hi, How return two variable from function

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

How return two variable from function?

You can do what yrtv suggests. Or you could return an array with two elements, and access the elements by their indices.

Ertain | 2021-02-06 19:38

:bust_in_silhouette: Reply From: yrtv

Greetings. (Lua programmer i assume ) in world of gdsript we return one of this

Dictionary has Lua-style table syntax.