Is combobox the hell it seems?

It must be…

I’m trying to use a variable and make it assume a diferent value acording to the option selected on the combobox and it’s been hell for me.

Supose I have a variable named “favouritesport”…
I would like to have a combobox with 3 items (baseball, football, basketball).
As you choose one of the sports the variable should change.

Ex. If someone chose baseball than it woul make favouritesport=baseball

Can anyone help?

Thanks in advance…