# Branches returning both true and false.

**URL:** <https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408>\
**Category:** Community & Industry Discussion\
**Tags:** newbie, not-working, broken, condition, branch, unreal-engine, question\
**Created:** [September 5, 2021, 10:35am UTC](https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408 "2021-09-05T10:35:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PraxisCod01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PraxisCod01](https://forums.unrealengine.com/u/PraxisCod01)\
**Post date:** [September 5, 2021, 10:35am UTC](https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408/1 "2021-09-05T10:35:37Z")

</div>

Hi everyone,

I’m new to unreal and I’m trying to do different actions depending on the value of a float, but when using a == as a condition it is returning false when it should return true. I have used an event tick with the same condition and that is returning the true in the same event graph so I’m not sure what is going on.

Would appreciate any help, thanks.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 5, 2021, 12:19pm UTC](https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408/2 "2021-09-05T12:19:09Z")

</div>

How and when are you changing affector number?

---

<div class="post-metadata">

**Author:** ![Jaco001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jaco001](https://forums.unrealengine.com/u/Jaco001)\
**Post date:** [September 5, 2021, 12:45pm UTC](https://forums.unrealengine.com/t/branches-returning-both-true-and-false/488408/3 "2021-09-05T12:45:41Z")

</div>

Also it is float - you can use [https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Math/Float/NearlyEqual\_float/](https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Math/Float/NearlyEqual_float/)
