# {FMX} if else statement help

**URL:** <https://forum.kirupa.com/t/fmx-if-else-statement-help/80379>\
**Category:** flash\
**Created:** [February 21, 2005, 8:39pm UTC](https://forum.kirupa.com/t/fmx-if-else-statement-help/80379 "2005-02-21T20:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blackmateria](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Blackmateria](https://forum.kirupa.com/u/Blackmateria)\
**Post date:** [February 21, 2005, 8:39pm UTC](https://forum.kirupa.com/t/fmx-if-else-statement-help/80379/1 "2005-02-21T20:39:53Z")

</div>

So I failed at the last thing so I thought I’d try something different.

if (c.getSelectedItem().label= Polearms) {  
textbox2.text = “the”;  
}

I want this to detected which selection was made based on the label, in the hopes I could display the information on a second textbox, but it’s no working…

any corrections?
