# Multiple condition group ordering

**URL:** <https://discourse.haproxy.org/t/multiple-condition-group-ordering/5543>\
**Category:** Help!\
**Created:** [July 29, 2020, 8:13pm UTC](https://discourse.haproxy.org/t/multiple-condition-group-ordering/5543 "2020-07-29T20:13:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjstone707](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/cjstone707/32/1233_2.png) [@cjstone707](https://discourse.haproxy.org/u/cjstone707)\
**Post date:** [July 29, 2020, 8:13pm UTC](https://discourse.haproxy.org/t/multiple-condition-group-ordering/5543/1 "2020-07-29T20:13:00Z")

</div>

Hi, I would like to do something like this (logically):

http-request deny unless acl1 OR acl2 OR (acl3 AND acl4)

Would this statement do that?

http-request deny unless acl1 or acl2 or acl3 acl4

Thanks!

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [July 29, 2020, 8:57pm UTC](https://discourse.haproxy.org/t/multiple-condition-group-ordering/5543/2 "2020-07-29T20:57:25Z")

</div>

No, because it’s sequential. If you want that, you need to move it around:

```
http-request deny unless acl3 acl4 or acl1 or acl2
```
