# Rest api expr w/ andX syntax

**URL:** <https://forum.mautic.org/t/rest-api-expr-w-andx-syntax/21125>\
**Category:** Product Support\
**Created:** [October 4, 2021, 1:54am UTC](https://forum.mautic.org/t/rest-api-expr-w-andx-syntax/21125 "2021-10-04T01:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [October 4, 2021, 1:54am UTC](https://forum.mautic.org/t/rest-api-expr-w-andx-syntax/21125/1 "2021-10-04T01:54:49Z")

</div>

**Your software**  
My Mautic version is: 4.0  
My PHP version is: 7.4  
My Database type and version is: tidb

**Your problem**

> **[The QueryBuilder - Doctrine Object Relational Mapper (ORM)](https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/query-builder.html#the-expr-class)**
>
> Doctrine Object Relational Mapper Documentation: The QueryBuilder

shows the expr syntax

I want to e.g. do a query from leads/contacts (via rest) where e.g. email is not null and company is null.

where[0][col]=email&where[0][expr]=isNotNull&where[1][col]=company&where[1][expr]=isNull

is an or.

I see an ‘andX’ operator, but, what is the syntax to use it? Where would it go in this expression?
