Hi
I have a short piece of trial code that compares some input and then
produces a message based on the value.
However I get a build error that i dont know how to resolve ' Cannot
implicitly convert type 'double' to 'bool'
The code is
double expect = int.Parse(txtInput.Text);
if (expect <100) MessageBox.Show("This is less than 100");
else if (expect = 100) MessageBox.Show("This is equal to 100");
else MessageBox.Show("This is greater than 100","Result");
}
}
The error relates to the 'else if' line.
Please advise what the error means and how to resolve it.
Thanks
Doug