# Boolean type blueprint function call always gives 'false' in c++. What's going on?

**URL:** <https://forums.unrealengine.com/t/boolean-type-blueprint-function-call-always-gives-false-in-c-whats-going-on/2679437>\
**Category:** C++\
**Tags:** unreal-engine, question, CPP, Blueprint\
**Created:** [November 27, 2025, 3:36pm UTC](https://forums.unrealengine.com/t/boolean-type-blueprint-function-call-always-gives-false-in-c-whats-going-on/2679437 "2025-11-27T15:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nememik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nememik](https://forums.unrealengine.com/u/Nememik)\
**Post date:** [November 27, 2025, 3:36pm UTC](https://forums.unrealengine.com/t/boolean-type-blueprint-function-call-always-gives-false-in-c-whats-going-on/2679437/1 "2025-11-27T15:36:17Z")

</div>

For background: I’m trying to make a conversation system in c++. Certain lines have conditions attached, and the attaching is done from blueprint.

Here are parts of the header file for a line in the conversation:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/c/bec7b1d448985d4c3f91564d6efe4949ce4a4acf.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/b/2db0eeeca524a109204b49159c027062f7d84e14.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/1/691ee7e706089d16bfa354df67f0c335970aacb7.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/5/1c54e215dcbbe83301e83111c4782f8beb3e2969.png)

The only important member variable now is `conditions`.

Relevant parts of the .cpp file:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/9/3f9c0893696756207df2c689ec20a0e0d491bd3d.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a0c9d4ad6387d806ef09d1d5a97e65f379f2afb.png)

Now the problem is I made an actor that has lines and added a condition to one of them. The function for test purposes always returns `true`, however, `testvar` somehow always becomes `false`. Even when I set the function to always return `false`, `testvar` is still `false`.

In the actor:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/6/656dc9154bb210df25ed643bac94b391a350e9dc.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/7/1d7acbcabd37080c2f98b7ffffd762a0f98d274c.png)

I checked that `Blabla` (great name I know) indeed runs, but then `testvar` still becomes `false`.

And the most baffling thing is, that I did the same thing in the controller, and somehow it works as intended there. I’m just completely lost. Anyone have a guess of what’s causing this behaviour?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [November 28, 2025, 9:17am UTC](https://forums.unrealengine.com/t/boolean-type-blueprint-function-call-always-gives-false-in-c-whats-going-on/2679437/3 "2025-11-28T09:17:35Z")

</div>

check if the Get node is returning what is intended?

---

<div class="post-metadata">

**Author:** ![Nememik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nememik](https://forums.unrealengine.com/u/Nememik)\
**Post date:** [November 28, 2025, 9:21am UTC](https://forums.unrealengine.com/t/boolean-type-blueprint-function-call-always-gives-false-in-c-whats-going-on/2679437/4 "2025-11-28T09:21:00Z")

</div>

Update:

The difference between the actor and the controller is that in the actor I made the function “by hand” in the editor. In the controller I auto-generated the function for calling `AddCondition`. When I choose to generate a matching function with the `Create Event` node, everything works as expected.

I have a guess that it could be about returning by value or reference, and the editor defaults to reference, maybe? Does anyone have any ideas?
