I have a grid. When I enter some numeric values in that grid, it is saved in array.
RegArrayLoopEL = RegArrayEL[a].Split('ô');
Now In case an array has empty string "" I have to replace it with 0 One way that I can do is
if (RegArrayLoopEL[1] == "")
{
RegArrayLoopEL[1] = "0";
}
But for that I will have to use a lot of if conditions for every array. Is there any alternative for it? or any other way this can be done?