From 22f62bfa49f83a275930c043bf48d731b96e2a9d Mon Sep 17 00:00:00 2001 From: 4ian <1280130+4ian@users.noreply.github.com> Date: Mon, 8 Jun 2026 09:49:42 +0000 Subject: [PATCH] [Auto] [Update] Document automatic return action added and kept in sync for custom expressions --- automated_updates_data.json | 2 +- docs/gdevelop5/events/functions/index.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/automated_updates_data.json b/automated_updates_data.json index b2d10e2b2e4..a0802155f6e 100644 --- a/automated_updates_data.json +++ b/automated_updates_data.json @@ -1,5 +1,5 @@ { - "last_automated_updates_commit": "eabcf11f3558d2f6160c3eeaabf60cf161473223", + "last_automated_updates_commit": "c6d40449c82c37e8d551f33ca798da3a520df5e6", "last_improved_things": [ { "date": "2026-02-16", diff --git a/docs/gdevelop5/events/functions/index.md b/docs/gdevelop5/events/functions/index.md index 2edd674e37d..3256d666a18 100644 --- a/docs/gdevelop5/events/functions/index.md +++ b/docs/gdevelop5/events/functions/index.md @@ -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**.