I'm trying to output a string to label in C# (Visual Studio 19), but it isn't working the way I think it works.
I haven't really tried anything else because I don't know what to do. I've searched up videos/tutorials, but none of them are helpful.
if (Verb == 1)
{
Verbstring = "Getting";
}
lblTitle.Text = Verbstring;
I expected the label to output string "Verbstring" and "Verbstring" to change depending on what number decimal "Verb" equals. The error message says "Use of unassigned local variable 'Verbstring'.
Edit: Solved by @KenWhite