Is that how the return statement works?

I’ve been stuck for 2 days on this statement.

Please take a look at the diagram, and tell me if I understand the way this statement works.

What do you mean by you are stuck? It looks to me like you understand it, and when testing your code it does what was expected, so it seems like you’ve got it!

To finish a task is one thing, understanding the logic behind it is something completely different.
Thanks for the prompt help.