Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Array string is not working in if else condition.

$
0
0

hi,


I am getting value">100.00" in m ={prices[0].Trim()}

and I am getting value ">100.00" in n.

string[] m = { prices[0].Trim() };
string[] n = new string[] {">100.00"};

if (m == n)
{
....
}
else
{
...
}


In the above if condition is true (m == n). but cursor does not go to if condition, it goes to else condition. how to fix this. why it is not going to if condition. please help me out. Thank you.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>