# Using return in a ?: conditional Operator

**URL:** <https://forum.kirupa.com/t/using-return-in-a-conditional-operator/302624>\
**Category:** Uncategorized\
**Created:** [January 4, 2010, 3:21pm UTC](https://forum.kirupa.com/t/using-return-in-a-conditional-operator/302624 "2010-01-04T15:21:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [January 4, 2010, 3:21pm UTC](https://forum.kirupa.com/t/using-return-in-a-conditional-operator/302624/1 "2010-01-04T15:21:26Z")

</div>

I’d like to have this work

```auto
o? return o.stage : return false//1084: Syntax error: expecting identifier before return.

```

but it give me an error. Is this just not achievable? at the moment I have resorted to doing this:

```auto
if(!o)return false;
else return o.stage;

```

or this …

```auto
var b:Boolean;
o ? b = o.stage: b = false;
return b;

```

which both work fine…

Thanks for your consideration,

S.
