T
Tony
int num;
num=1;
if (num=1)
{
MessageBox.Show("Num=1","num_message");
}
num=3;
if (num < 4)
{
MessageBox.Show("num is less than 4","nummy");
}
Trying the above code errors out on if (num=1) because
"Cannot implicitly convert type 'int' to 'bool'"
How would I modify this to make it work??
thanks
Tony!
num=1;
if (num=1)
{
MessageBox.Show("Num=1","num_message");
}
num=3;
if (num < 4)
{
MessageBox.Show("num is less than 4","nummy");
}
Trying the above code errors out on if (num=1) because
"Cannot implicitly convert type 'int' to 'bool'"
How would I modify this to make it work??
thanks

Tony!