I'm trying to validate dynamic conditions. Is there a way to do:
string condition = "i == 3";
for (int i = 0; i < 5; i++)
{
if (condition)
{
// condition met
}
}
or is this the wrong approach and there is a better way to dynamically evaluate a condition ?