# How to change the output of a variable from float to boolean?

**URL:** <https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 30, 2015, 10:49pm UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914 "2015-09-30T22:49:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilimili](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bilimili/32/1069060_2.png) [@bilimili](https://forums.unrealengine.com/u/bilimili)\
**Post date:** [September 30, 2015, 10:49pm UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/1 "2015-09-30T22:49:15Z")

</div>

So I was following the tutorial about how to make our character jump and I was stuck in the point where he connected the time remaining ratio with the float-float variable and the last one was connected to the result, which is a boolean. The thing is that when I tried to do it (and at this moment allow me to underline the fact that I didn’t know anything Blueprint until yesterday), I noticed that the output of this variable is float and from what I tried to do, I couldn’t change it to boolean.

Is there a way to do it?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [September 30, 2015, 11:08pm UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/2 "2015-09-30T23:08:04Z")

</div>

If i understood correctly you need to compare the float and get the result of that comparison as a bool. If so, drag from your float variable and then type **\<** , **\>** or **=** and you’ll get the compare function you need depending on what you want to use the bool for.

---

<div class="post-metadata">

**Author:** ![Slayemin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slayemin](https://forums.unrealengine.com/u/Slayemin)\
**Post date:** [September 30, 2015, 11:08pm UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/3 "2015-09-30T23:08:19Z")

</div>

That makes no sense. You’re trying to convert a decimal point value into a true/false value. There isn’t an implicit conversion for that.

I think what you’re missing is some sort of comparison node in the tutorial. Go back and see if there’s a node you missed which looks like “\<=” or “\>=” or “==”. That would compare two float values and give you a boolean value.

---

<div class="post-metadata">

**Author:** ![bilimili](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bilimili/32/1069060_2.png) [@bilimili](https://forums.unrealengine.com/u/bilimili)\
**Post date:** [October 1, 2015, 12:36am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/4 "2015-10-01T00:36:52Z")

</div>

Thank you Slayemin for you answer. If you have a minute, check this tutorial that I am attaching. At 08:00 is the point that I am having the problem. Maybe the problem is that I am working on 4.9 and this is a tutorial for 4.8. The thing is that when I am doing the same thing, the output is not boolean but it’s float.

Thank you!

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![Slayemin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slayemin](https://forums.unrealengine.com/u/Slayemin)\
**Post date:** [October 1, 2015, 12:53am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/5 "2015-10-01T00:53:19Z")

</div>

I verified that the tutorial video you sent is valid in 4.9.1. It’s good.

I think the problem may be on your end. Can you take a screenshot of the transition node you’re having trouble with and post it?

---

<div class="post-metadata">

**Author:** ![dalobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dalobo](https://forums.unrealengine.com/u/dalobo)\
**Post date:** [February 20, 2016, 3:02am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/6 "2016-02-20T03:02:38Z")

</div>

Hi, Im having the same problem in that same tutorial, exactly at 8:25. Where the “float-float” node conects to the “can enter transition” bolean receptor. So on my float-float node I do not have a bolean (red end) and cannot make the conection…

 ![79197-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/c/83ca893ab7a7916a66c5d38ef4267ca9fe010337.png)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [February 20, 2016, 3:07am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/7 "2016-02-20T03:07:43Z")

</div>

It is not float-float; it’s float ‘less than’ float. You need to search for “ **float \<** ” in the context menu.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f18a5c15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f18a5c15](https://forums.unrealengine.com/u/anonymous_user_f18a5c15)\
**Post date:** [October 20, 2017, 3:28am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/8 "2017-10-20T03:28:29Z")

</div>

Thank you - I was having the same issue. When I searched “Float\<” found the right one and the connection worked great! The tutorial did state Float-Float. ( I think that is what got confusing) Anyways- Thank you -thank you-thank you. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f18a5c15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f18a5c15](https://forums.unrealengine.com/u/anonymous_user_f18a5c15)\
**Post date:** [October 20, 2017, 3:31am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/9 "2017-10-20T03:31:51Z")

</div>

Sorry it did say less than. Time to take a break lol

---

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [May 16, 2021, 7:25am UTC](https://forums.unrealengine.com/t/how-to-change-the-output-of-a-variable-from-float-to-boolean/333914/10 "2021-05-16T07:25:06Z")

</div>

AWESOME! STUFF!
