tags:

views:

6

answers:

0

Sorry about the vague question. I'll try to explain better. I have condition objects composed of a string parameter, a string operator and a value. for example: {"Age", ">","33"}.

Now, I have a hashtable where the key is the parameter name and the value is the actual parameter value. {"Height" ,"166"}

I would like to go over the condition objects and for each one to check if it is true. I will access the hash and get the true value and than build the math expression and evaluate.

If the condition is {"Age", ">","33"} and the actual value in Hash["Age"] is 25 than the result will be false.

Is there a good way to implement such an "engine"?

Thanks