# Data Table Get Rows: condition check for 0 count return

**URL:** <https://forums.losant.com/t/data-table-get-rows-condition-check-for-0-count-return/1074>\
**Category:** Help\
**Created:** [August 16, 2018, 11:30am UTC](https://forums.losant.com/t/data-table-get-rows-condition-check-for-0-count-return/1074 "2018-08-16T11:30:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauirce\_Windley](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Mauirce\_Windley](https://forums.losant.com/u/Mauirce_Windley)\
**Post date:** [August 16, 2018, 11:30am UTC](https://forums.losant.com/t/data-table-get-rows-condition-check-for-0-count-return/1074/1 "2018-08-16T11:30:34Z")

</div>

Hello from Maurice, newbie question sorry (i am quick though).

I am retrieving rows from a table, i wish use a condition node to test if I have zero rows returned.

I bring returned rows to data.table. the items appears when rows are returned. it is absent when no rows are returned.

I have not deduced how to frame the condition node test.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Mauirce\_Windley](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Mauirce\_Windley](https://forums.losant.com/u/Mauirce_Windley)\
**Post date:** [August 16, 2018, 11:43am UTC](https://forums.losant.com/t/data-table-get-rows-condition-check-for-0-count-return/1074/2 "2018-08-16T11:43:45Z")

</div>

ooops, i had a function node between get table row and condition node.

when condition immediately after get table i can see data.table.count=0 so problem solved.  
Maurice

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [August 16, 2018, 12:34pm UTC](https://forums.losant.com/t/data-table-get-rows-condition-check-for-0-count-return/1074/3 "2018-08-16T12:34:44Z")

</div>

A Function Node would work, but also, assuming you’re putting the result of your Get Table Rows Node at the payload path of `result`, you can use the `count` property on that result to tell if any rows were returned. Therefore, the expression you would check against in the Conditional Node would be:

```auto
{{result.count}} > 0

```
