# Boolean from axis value

**URL:** <https://forums.unrealengine.com/t/boolean-from-axis-value/379312>\
**Category:** Blueprint\
**Tags:** compare, unreal-engine, Blueprint, question\
**Created:** [December 14, 2016, 10:57pm UTC](https://forums.unrealengine.com/t/boolean-from-axis-value/379312 "2016-12-14T22:57:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b36491831](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b36491831](https://forums.unrealengine.com/u/anonymous_user_b36491831)\
**Post date:** [December 14, 2016, 10:57pm UTC](https://forums.unrealengine.com/t/boolean-from-axis-value/379312/1 "2016-12-14T22:57:52Z")

</div>

I am trying to achieve a simple task but somehow not getting the results I expected, starting to be clueless what I am missing.

All what I try to do is get a boolean value, depending on comparison of the axis value.

 ![118716-ue4-axis-value.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/c/89c2dd47572548b5a8ae307960b1a3e7e4f29686.png)

What happens with this simple blueprint, is that initially it prints ‘false’, after pressing the button it returns ‘true’, but when I then release the button it still stays ‘true’. When I print the axis value directly I can clearly see it increment and decrement in steps of 0.001 between 0 and 1.

I’ve tried the same blueprint with a '‘Gamepad Left Trigger Axis’ event, then it works as expected…

Also tried mapping the axis, used the ‘CompareFloat’ function, tried a ‘!=’ instead of ‘\>’. It all gives me the same results so hope somebody can’t point me on the thing I don’t seem to see…

So this is either something weird about the ‘MotionController (L) Grip1 Axis’ event or I am just being plain stupid 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b36491831](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b36491831](https://forums.unrealengine.com/u/anonymous_user_b36491831)\
**Post date:** [December 15, 2016, 9:55pm UTC](https://forums.unrealengine.com/t/boolean-from-axis-value/379312/2 "2016-12-15T21:55:19Z")

</div>

Somebody with motion controllers who can help me out? It is driving me nuts and it more and more feels like a bug…

 ![118915-ue4-axis-value-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/a/b8a813eecbbdaeb142cb157716a3c104cd2530e5.png)

Documentation doesn’t state anything out of the ordinary:  
[https://docs.unrealengine.com/latest/INT/BlueprintAPI/Input/GamepadEvents/MotionController\_L\_Grip1Axis/index.html](https://docs.unrealengine.com/latest/INT/BlueprintAPI/Input/GamepadEvents/MotionController_L_Grip1Axis/index.html)

---

<div class="post-metadata">

**Author:** ![gamesmyth27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamesmyth27](https://forums.unrealengine.com/u/gamesmyth27)\
**Post date:** [March 3, 2018, 6:48pm UTC](https://forums.unrealengine.com/t/boolean-from-axis-value/379312/3 "2018-03-03T18:48:56Z")

</div>

Use a CompareFloat from the axis value!
