I have a windows form where I have a textbox that the user selects text from and then based on that text selection code will execute. I now need to set up a if statement that will if the user chooses "Airplane 1" from the textbox the code will change the name to "Alpha Airplane" or if the user selects "Airplane 2" from the textbox it changes the name to "Beta Airplane" I tried this code:
if (Names.Text = "Airplane 1")
Names.Text = "Alpha Airplane"
if (Names.Text = "Airplane 2")
Names.Text = "Beta Airplane"
But VS is throwing an error of Cannot implicitly convert type 'string' to 'bool' How can I do this?