# How can I set the AND or OR condition in Transition Condition of a Transition Region with code

**URL:** <https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295>\
**Category:** FMOD Engine\
**Created:** [August 31, 2025, 3:42am UTC](https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295 "2025-08-31T03:42:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuelmar](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@samuelmar](https://qa.fmod.com/u/samuelmar)\
**Post date:** [August 31, 2025, 3:42am UTC](https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295/1 "2025-08-31T03:42:11Z")

</div>

HI

I’m doing a javascript script and in general terms I have been able to do almost anything with code.

I just want to know how I can set the Transition Condition logic as AND or OR, thanks in advance!

 ![andor](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/cae0ba480ce9b61fe5ad130504675d1e969b78e9.jpeg)

Part of my code:

```javascript
var markerTrack = event.markerTracks[3]; // This is a Transition Region
var region = markerTrack.addTransitionRegion(marker1.position, marker2.position - marker1.position, marker3);
var parameterPreset = studio.project.lookup("parameter:/HasChorus");
var condition = region.addParameterCondition(parameterPreset, 1, 1);

```

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [September 1, 2025, 5:35am UTC](https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295/2 "2025-09-01T05:35:30Z")

</div>

The member in the API you’re looking for is `triggerConditionMode`, and belongs to whatever object has the setting in UI - in this case, it’s the transition marker/region, so`region.triggerConditionMode`. 0 equals AND, and 1 equals OR.

---

<div class="post-metadata">

**Author:** ![samuelmar](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@samuelmar](https://qa.fmod.com/u/samuelmar)\
**Post date:** [September 2, 2025, 12:31am UTC](https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295/3 "2025-09-02T00:31:12Z")

</div>

Thanks it worked! For everybody is reading this topic I just want to point out that `region.triggerConditionMode = 0` is the correct way to do this.

Also, where can I find documentation about this kind of members/methods/functions ? I searched a lot in internet and in your API documentation [https://www.fmod.com/docs/2.00/unity/user-guide.html](https://www.fmod.com/docs/2.03/studio/welcome-to-fmod-studio.html) (in all versions 2.00, 2.01, 2.02. 2.03) but `triggerConditionMode ` is not described anywhere in your webpage docs.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [September 2, 2025, 11:56pm UTC](https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295/4 "2025-09-02T23:56:07Z")

</div>

Unfortunately, the scripting API reference is quite barebones at the moment. For things that aren’t covered in the reference docs, our recommendation is to make use of the `.document()` and `.dump()`functions on `ManagedObject`. `.document()` will log all members and functions of a given `ManagedObject` to console, and `.dump()` will log the same as well as the current values of those members.

---

<div class="post-metadata">

**Author:** ![samuelmar](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@samuelmar](https://qa.fmod.com/u/samuelmar)\
**Post date:** [September 3, 2025, 5:17am UTC](https://qa.fmod.com/t/how-can-i-set-the-and-or-or-condition-in-transition-condition-of-a-transition-region-with-code/23295/5 "2025-09-03T05:17:27Z")

</div>

I understand, again thanks for the solution and for the sugestions about how to find all the possibilities that FMOD provides 🙂 .
