Hi,
I've got the following if-statement:
if ($age >= $searchage && $height <= $searchheight && $weight == $searchweight)
This is a part of the code I use for a 'search-form'. One can search for age, height and weight. In this example the operators are fixed. I'd like to give the searcher the option to define the operators for each variable, so for example one can search for both younger, older, exactly or anything but a given age. The most simple solution to me would be to replace the '>=' with $ageoperator and the '<=' with heightoperator etc. (all defined in the search-form). Is this possible, or are there other/ better ways to do this?
Thanx in advance, Michiel