# Component Help

**URL:** <https://forum.kirupa.com/t/component-help/26932>\
**Category:** flash\
**Created:** [July 28, 2003, 12:27pm UTC](https://forum.kirupa.com/t/component-help/26932 "2003-07-28T12:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1druid1](https://avatars.discourse-cdn.com/v4/letter/1/278dde/32.png) [@1druid1](https://forum.kirupa.com/u/1druid1)\
**Post date:** [July 28, 2003, 12:27pm UTC](https://forum.kirupa.com/t/component-help/26932/1 "2003-07-28T12:27:08Z")

</div>

Hi all

I have an option group named Member, with two options yes and no.  
The option yes name is myes and the option no name is mno. What I wanted to do is depending on which one of the options is selected a tect message is assigned to another variable. I wrote the following code.

if (myes = true){  
member\_party = “Yes I would like to join the group”;  
} else if (mno = true){  
member\_party = “I do not want to join at the moment”;  
}

I thought that since the option buttons states where either true or falsethis would work. But it seems to have assigned myes as true all the time, regrdless if any of the options is selected.

Please help

Regards

1druid1

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 12:49pm UTC](https://forum.kirupa.com/t/component-help/26932/2 "2003-07-28T12:49:20Z")

</div>

try using == in your if statements, not =

= assigns  
== compares
