# Check if Integer is lower then 0?

**URL:** <https://forums.unrealengine.com/t/check-if-integer-is-lower-then-0/101613>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 22, 2017, 3:25pm UTC](https://forums.unrealengine.com/t/check-if-integer-is-lower-then-0/101613 "2017-10-22T15:25:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cd27af11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cd27af11](https://forums.unrealengine.com/u/anonymous_user_5cd27af11)\
**Post date:** [October 22, 2017, 3:25pm UTC](https://forums.unrealengine.com/t/check-if-integer-is-lower-then-0/101613/1 "2017-10-22T15:25:19Z")

</div>

I’m making a simple health script, and I’m confused on how to check if a integer is less then 0.  
Code:

 ![d6d2495a35b2a8f1d9e86b6fc426c87f.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/6/36eee31f0e9f95467df831f318976fef49e59060.png)

Output:

 ![UE4Editor_2017-10-22_09-21-13.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/0/b01dfe384179eeabf0f242514fe2dd57d995bd5b.jpeg)

Is there a node for this or something?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 22, 2017, 7:03pm UTC](https://forums.unrealengine.com/t/check-if-integer-is-lower-then-0/101613/2 "2017-10-22T19:03:38Z")

</div>

I think you’re looking for this:

> **[integer \< integer](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Math/Integer/integer_lt_integer/)**
>
> integer \< integer

---

<div class="post-metadata">

**Author:** ![Thuranius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thuranius](https://forums.unrealengine.com/u/Thuranius)\
**Post date:** [October 23, 2017, 3:12pm UTC](https://forums.unrealengine.com/t/check-if-integer-is-lower-then-0/101613/3 "2017-10-23T15:12:01Z")

</div>

The problem is that you are converting your int directly into bool. If that bool is not 1, it will be false. You need to check if the health in is less than or equal to 0.
