I'm programming a game. I have a mySQL table with data on several soccer teams. One piece of data is the team's reputation. The coach's salary depends on the team's reputation. 

In the game there is a combobox containing the names of all teams. So the team you choose will define the coach's salary. I'd like to do something like this psuedo-code:

```
If ( "the field  comboboxtext reputation" == "worldwide")
{
     coach's salary = 256000
}

```

So how can I accomplish this? If there's a way to do it without using `if`, I'd like to know that too.