Is it possible to change a string from another value? Here is my C# code:
if (QuestionNum == 1 && inputAnswer == RightAnswer || inputAnswer == RightAnswerLower)
{
Program.GotQ1Correct = true;
}
I know that in Lua I could of just changed the Program.GotQ1Correct = true;
part to
Program.GotQ[QuestionNum]Correct = true;
However was just wondering if this was possible in C#.
Edit
I'm very sorry if I wasn't clear before, so basically in the above lua code it would change GotQ1Correct to GotQ2Correct and so on and was just wondering if there was a similar, simple way to do this in C# without arrays.