# How should I write this ternary operator?

**URL:** <https://forum.kirupa.com/t/how-should-i-write-this-ternary-operator/279178>\
**Category:** flash\
**Created:** [January 10, 2009, 7:47pm UTC](https://forum.kirupa.com/t/how-should-i-write-this-ternary-operator/279178 "2009-01-10T19:47:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thief\_of\_Light](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@Thief\_of\_Light](https://forum.kirupa.com/u/Thief_of_Light)\
**Post date:** [January 10, 2009, 7:47pm UTC](https://forum.kirupa.com/t/how-should-i-write-this-ternary-operator/279178/1 "2009-01-10T19:47:05Z")

</div>

What is the proper way to write this nested ternary operator?

var \_bool:Boolean = \_isTrue1 ? true : (\_isTrue2 ? true : false);
