# Null values in variable type BOOL, NUM, INT

**URL:** <https://community.tulip.co/t/null-values-in-variable-type-bool-num-int/6432>\
**Category:** Product Suggestions\
**Created:** [September 21, 2022, 4:06am UTC](https://community.tulip.co/t/null-values-in-variable-type-bool-num-int/6432 "2022-09-21T04:06:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakitha](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/rakitha/32/4668_2.png) [@Rakitha](https://community.tulip.co/u/Rakitha)\
**Post date:** [September 21, 2022, 4:06am UTC](https://community.tulip.co/t/null-values-in-variable-type-bool-num-int/6432/1 "2022-09-21T04:06:43Z")

</div>

I find “NULL” values for Booleans, Integers and Numbers are less than optimal. I think these should be zero ( or false). A string can be NULL.  
When we use the data manipulation → clear bools, int and nums are set to NULL which is also a problem imo.

This means for data validation we need to check for not blank and greater than zero.

I dont come from a web development background so I’m not sure if this is a common issue in that area. But in PLC programming NULL is only allowed for strings (text) by default

---

<div class="post-metadata">

**Author:** ![Pete\_Hartnett](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/pete_hartnett/32/3678_2.png) [@Pete\_Hartnett](https://community.tulip.co/u/Pete_Hartnett)\
**Post date:** [September 22, 2022, 12:32pm UTC](https://community.tulip.co/t/null-values-in-variable-type-bool-num-int/6432/3 "2022-09-22T12:32:12Z")

</div>

Hey @Rakitha -

The other issue with us ever considering changing this behavior, is this has potential risk to thousands of apps that are already running in production. This is the kind of change that we can’t easily _migrate_ customers to.

_if we went down this road_, How would a quality department audit and insure all those zeros were actual measurements and not a user forgetting to enter a field? Null values make it so all data can be trusted. If its not Null, someone (or something) set it.

You can set default values for any variable, and _Reset all variables to default_ will set them to that default value, but I wouldn’t expect us to change this behavior nativly.

Pete

---

<div class="post-metadata">

**Author:** ![Rakitha](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/rakitha/32/4668_2.png) [@Rakitha](https://community.tulip.co/u/Rakitha)\
**Post date:** [September 22, 2022, 11:42pm UTC](https://community.tulip.co/t/null-values-in-variable-type-bool-num-int/6432/4 "2022-09-22T23:42:04Z")

</div>

> [@Pete\_Hartnett](#):
>
> _if we went down this road_, How would a quality department audit and insure all those zeros were actual measurements and not a user forgetting to enter a field? Null values make it so all data can be trusted. If its not Null, someone (or something) set it.

I didn’t think of this situation, makes sense.
