# Handling null values

**URL:** <https://forum.inductiveautomation.com/t/handling-null-values/90094>\
**Category:** Ignition\
**Created:** [May 8, 2024, 12:38pm UTC](https://forum.inductiveautomation.com/t/handling-null-values/90094 "2024-05-08T12:38:47Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Aisha\_Shiddat](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@Aisha\_Shiddat](https://forum.inductiveautomation.com/u/Aisha_Shiddat)\
**Post date:** [May 16, 2024, 3:23pm UTC](https://forum.inductiveautomation.com/t/handling-null-values/90094/22 "2024-05-16T15:23:23Z")

</div>

I removed the loop.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [May 16, 2024, 3:51pm UTC](https://forum.inductiveautomation.com/t/handling-null-values/90094/23 "2024-05-16T15:51:10Z")

</div>

I think the pythonic way to coalesce _ **and** _ use int() would be:

```python
value = int(tableanalyses_data[0]) or 'N/A' if tableanalyses_data[0] is not None else 'N/A'

```

That said, this test would probably be better served in the query.

[Previous page](https://forum.inductiveautomation.com/t/handling-null-values/90094.md?page=1)
