Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion automated_updates_data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"last_automated_updates_commit": "eabcf11f3558d2f6160c3eeaabf60cf161473223",
"last_automated_updates_commit": "c6d40449c82c37e8d551f33ca798da3a520df5e6",
"last_improved_things": [
{
"date": "2026-02-16",
Expand Down
4 changes: 4 additions & 0 deletions docs/gdevelop5/events/functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ Function that are conditions or expressions must return a value. The returned va

![](function-return-action.png)

!!! tip

When you create a new expression, the matching return action is added automatically for you. If you later change the expression between a number and a text, the return action is updated to the right type.

### Use variables from function events

Variables can be useful within functions for intermediary results or to keep a state in the extension. You can declare new [variables](/gdevelop5/all-features/variables) that are accessible only inside the extension by clicking on **Extension global variables** or **Extension scene variables**.
Expand Down