# Ternaries on Mouse interaction Y/N?

**URL:** <https://forum.kirupa.com/t/ternaries-on-mouse-interaction-y-n/326484>\
**Category:** flash\
**Created:** [December 17, 2011, 7:29pm UTC](https://forum.kirupa.com/t/ternaries-on-mouse-interaction-y-n/326484 "2011-12-17T19:29:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duchman](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@duchman](https://forum.kirupa.com/u/duchman)\
**Post date:** [December 17, 2011, 7:29pm UTC](https://forum.kirupa.com/t/ternaries-on-mouse-interaction-y-n/326484/1 "2011-12-17T19:29:25Z")

</div>

Pros and cons of doing this please:

```auto
(e.type == "rollOver")? doOver:doOut;

```

Any gain except of condensing the view?  
Any loss on speed or performance?

Thanx
