Hi, I am having problems with my IF statements.
Basically, what I have done is set random numbers to 2 labels. (Random numbers are 1 or 0)
What I am trying to make the IF statement do, is see that the label is holding one of those random numbers, and then if it is "1" a calculation must be made, have a look at the code please:
if (this.LblANDa.Text = "1") //here is the syntax error.. cannot convert string to bool
{
this.ResultAND.Text = "Correct!";
}
regards