# Blueprint equivalent to ?: operator

**URL:** <https://forums.unrealengine.com/t/blueprint-equivalent-to-operator/365635>\
**Category:** Blueprint\
**Tags:** condition, branch, unreal-engine, question\
**Created:** [July 30, 2016, 3:59pm UTC](https://forums.unrealengine.com/t/blueprint-equivalent-to-operator/365635 "2016-07-30T15:59:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3dcc50b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3dcc50b21](https://forums.unrealengine.com/u/anonymous_user_3dcc50b21)\
**Post date:** [July 30, 2016, 3:59pm UTC](https://forums.unrealengine.com/t/blueprint-equivalent-to-operator/365635/1 "2016-07-30T15:59:51Z")

</div>

I’m looking for the Blueprint equivalent of the ternary operator:

`condition ? trueResult : falseResult`

So a node or node graph that has those three inputs and a single output, the value of which is either `trueResult` or `falseResult` based on the value of `condition`. And nothing more than that, so I’d like to not have an “exec line” (what’s the proper term?) running through it. This limitation means I can’t use a `Branch` node.

Does such a thing exist, or can it be built (without C++)?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3dcc50b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3dcc50b21](https://forums.unrealengine.com/u/anonymous_user_3dcc50b21)\
**Post date:** [July 30, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/blueprint-equivalent-to-operator/365635/2 "2016-07-30T16:10:24Z")

</div>

Found it. It exists and is called  
`Select Float` (or `Select Int` etc.)
