Branch works outside of function but not inside.

Hey all, I’ve run into this issue a few times where a branch will return True inside a function when it’s False, but when I take it outside of the function it reads correct. I’ve tried making the 2 objects I’m comparing variables and local variables with no luck.

Doesn’t work.

Works.

In your first example, don’t nodes that aren’t connected call return anyway, by default? Were you expecting it not to return?

There are points where the 2 local variables don’t equal the same thing, but even in those instances the branch bool triggers True.

I’ve no idea then, the generated script does appear to generate two returns for the branch (JumpIfNot), so unless there’s a bug with breakpoints (which I assume is what the empty return node is for).

Is this only an issue in editor or with packaged builds too?

need to see more of your code, like is NewLocalVar0 even set?