# Using both "AND" and "OR" logic for Transition Conditions?

**URL:** https://qa.fmod.com/t/using-both-and-and-or-logic-for-transition-conditions/20784
**Category:** FMOD Studio
**Tags:** unity
**Created:** [October 19, 2023, 1:38am UTC](https://qa.fmod.com/t/using-both-and-and-or-logic-for-transition-conditions/20784 "2023-10-19T01:38:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MilesDF](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MilesDF](https://qa.fmod.com/u/MilesDF)
#### Post date: [October 19, 2023, 1:38am UTC](https://qa.fmod.com/t/using-both-and-and-or-logic-for-transition-conditions/20784/1 "2023-10-19T01:38:59Z")

</div>

I’ve got a handful of Labeled Conditions I’m using to trigger Transition Regions.

I was wondering if I could check them using both “AND” and “OR” logic at the same time on a single Region. The desired behaviour would be something like “if (STATE1 or STATE2 and STATE3 or STATE4) then transition”.

It seems FMOD only allows you to toggle between either “AND” or “OR” logic at the moment.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/68d4359e121512e0a4639f7cbeef1dc02e0db18f.png)

If so, is there some sort of workaround to achive this ‘complex’ kind of logic gate?

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [October 19, 2023, 5:08am UTC](https://qa.fmod.com/t/using-both-and-and-or-logic-for-transition-conditions/20784/2 "2023-10-19T05:08:55Z")

</div>

> [@MilesDF](#):
>
> It seems FMOD only allows you to toggle between either “AND” or “OR” logic at the moment.

Your analysis is correct: The transition conditions widget does not currently support more complex combinations of AND and OR operators.

> [@MilesDF](#):
>
> If so, is there some sort of workaround to achive this ‘complex’ kind of logic gate?

As of the time of writing (October of 2023), no. You could get part of the way by using event instruments whose associated referenced events contain instruments with additional conditional logic as a way of nesting “AND” and “OR” conditions within each other, but it would be an imperfect solution, and could be confusing to read and maintain.

---

<div class="post-metadata">

### Author: ![MilesDF](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MilesDF](https://qa.fmod.com/u/MilesDF)
#### Post date: [October 22, 2023, 10:40pm UTC](https://qa.fmod.com/t/using-both-and-and-or-logic-for-transition-conditions/20784/3 "2023-10-22T22:40:42Z")

</div>

Thanks so much for confirming and for the suggested workaround!

Would love to see this supported in the future but for now it seems easiest to let Unity handle the complex logic gates.

Cheers again 🙂
