I need to be able to generate a conditional condition in the IF statement. The code should look something like this:
if($filter_by $operator $value) {
# do something
}
Which can be for example: column1 > 10 That obviously doesn't work. I tried doing this:
if(eval "$filter_by $operator $value")
but it also doesn't work. Any ideas?