Function return node doesn't function

This might be ultra stupid, but still. I have a big funtion, and I want it to return a bool at a certain point, so in event graph I can use that bool as a condition to that event.

347952-скриншот-04-09-2021-204146.png

The bool works and gives diffrent values inside function, but the output bool always comes out false. I tried it with an integer, and it kept giving me 0 in the output. Here is a branch on a screenshot below always going false:

347954-скриншот-04-09-2021-204220.png

What am I doin wrong?

I think you need to run the function before you run the branch node. If the function hasn’t been run, then the branch node won’t know what the value is because it’s trying to recieve an output that hasn’t been out-putted yet.

I knew it was that easy, thanks!

But what about a function that returns other type of values, like a map in my case? I’m dealing with the same issue.
I have a recursive function that has the final value all right, inside of itself, but doesn’t return anything when called inside another function, the map is empty.