If condtion is true but the code does not Execute in C#
Hi Vasanth057,
Please write more detailed explanation. If you simply paste Title it is of no use to us. Unless we understand we cannot help.
I have one if condtioin ,the condtion is true but the code does not execute
if (Fromses == from && todes == to) { string[] arr = seatno.Split(','); for (int i = 0; i < arr.Length - 1; i++) { } }
I have cross checked the code it is working.
string Fromses = "f", from = "f", todes = "t", to = "t"; string seatno = "1,2,3"; if (Fromses == from && todes == to) { string[] arr = seatno.Split(','); for (int i = 0; i < arr.Length - 1; i++) { } }
Not Worked for me sir
Try to debug the code. It is not possible to check your code remotly.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.