i have texblocks wn01, wn02, wn03 .... wn15. Every field has text="0" If field wn01.text 0 or "" i want to enter value of przerzucanie. If field wn01.text other value, than check next textblock.text But if statement doesnt enter, i=1,s=01, string.operator==returned false. i tried ("wn"+s).Text but is not recognized
private void przerzucanie_wyniku()
{
for (int i = 1; i < 16; i++)
{
string s = i.ToString("00");
if ("wn"+s==null||"wn"+s=="0")
{
"wn"+s.Text = przerzucanie;
break;
}
}
}