Hi there.
I need a sanity check here.
I have an array of strings and am running the following block of code in C#:
When I debug this, the respective watch values are:
cols[6] = "1"
cols[23] = "\"Y\""
cols[20] = "\"RD REC\""
So I would have expected this to enter the body of the IF-statement and execute the respective code, but that isn't happening.
Hence can anybody see where my logic is going amiss please?
Thank you.
Mark :)
I need a sanity check here.
I have an array of strings and am running the following block of code in C#:
Code:
string[] cols = line1.Split(separators.ToCharArray()); if ((cols[6] == "1") && (cols[23] == "Y") && (!(cols[20] == "STR REC "))) { //Do something... }
cols[6] = "1"
cols[23] = "\"Y\""
cols[20] = "\"RD REC\""
So I would have expected this to enter the body of the IF-statement and execute the respective code, but that isn't happening.
Hence can anybody see where my logic is going amiss please?
Thank you.
Mark :)
Comment