I am storing my condition operators in the database as we have a bunch of different conditions and it needs to be inserted in the code dynamically. So, I am pulling the condition operator from the database and then storing it in the variable. But then I need actually use the operator in my if statement. How can in insert it into if statement and use it as regular condition operator?
Here is some example of code:
$cond_operator = "<"; // (but this opperator actually pulled from database)
if ( $actual_value $cond_operator $score_value ) {
return $result;
}