# Transaction group Expression Item

**URL:** <https://forum.inductiveautomation.com/t/transaction-group-expression-item/91031>\
**Category:** Ignition\
**Created:** [May 28, 2024, 7:08pm UTC](https://forum.inductiveautomation.com/t/transaction-group-expression-item/91031 "2024-05-28T19:08:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [May 28, 2024, 7:08pm UTC](https://forum.inductiveautomation.com/t/transaction-group-expression-item/91031/1 "2024-05-28T19:08:45Z")

</div>

I am working with a transaction group and have everything working perfectly fine, except, if a step in the machines process fails, it logs a 0 to the server. This isn't a total problem, it just makes what we are using the data for a little harder. I started to look into it and found the expression item in the transaction groups and tried out this expression:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/906471ec42092adc412e92b90f010534846c598e.png)  
but I am only returning an error.

My goal is to return a NULL if the results are 0, otherwise return the results.

Is there something I am doing wrong within the transaction group?  
Is there a better way to approach this?

---

<div class="post-metadata">

**Author:** ![Noah\_Casey](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@Noah\_Casey](https://forum.inductiveautomation.com/u/Noah_Casey)\
**Post date:** [May 28, 2024, 7:27pm UTC](https://forum.inductiveautomation.com/t/transaction-group-expression-item/91031/2 "2024-05-28T19:27:16Z")

</div>

You are missing parenthesis.

```python
`if(TAG = 0, NULL, TAG2)`

```

> **[Expression Language and Syntax | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/expression-language-and-syntax)**
>
> Expression Language
