How to filter Aggregate with the local variable value?

I am storing the condition in one variable(temp) like below

temp = "name="+ var[0] + " or  " +" age = " + var[1]

i want to give temp as a condition in Aggregate filter how to do it 

can anyone please help me



Hi santhu MS,

Maybe you want to take a look here:

Does it solve your question?

Hi Marco Arede

the problem here is I am getting the list of value for var1 and var2, that list of values I need to use in Aggregate to filter depending upon the list of var1 and var2.