Hey, I'd propose (in the long run), to make AND and OR take a variable number of arguments. This should solve your problem, as one could then do call_user_func_array. Greets, Sebastian