Component Help

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



try using == in your if statements, not =

= assigns
== compares