C# Dynamic IF Else Statment [closed]
- by Tan Liang Liang
allrowcol[i] = rowcol + "||";
Is it possible to put :
if (loop == allrowcol.ToString())
If not, how can I place a few values inside an if statement?
I need to have a few values in the if, and this value is generated from a text file.
e.g. if(loop==11||14||15||16")
My array for the allrowcol.ToString() is "11||14||15||16||". rowcol is the number that I extract from my text file. But my if (read as a whole string).
What can I do?