U
ujjc001
Here's one for ya. I want to create a relational operator from a
string object, i.e. I want to somehow be able to say:
string opString = ">=";
int i1 = "20";
int i2 = "10";
if (i1 somemethodhere(opString) i2) {
//do the true here
}
else {
//do the false here
}
Don't ask why
Don't want a clunky switch statement.
Thoughts?
string object, i.e. I want to somehow be able to say:
string opString = ">=";
int i1 = "20";
int i2 = "10";
if (i1 somemethodhere(opString) i2) {
//do the true here
}
else {
//do the false here
}
Don't ask why

Don't want a clunky switch statement.
Thoughts?