Ultragames
07-02-2005, 05:14 AM
I need to be able to send part of an equation into a function. In other words, i wanted a variable in the function that is "==" or ">=" or "<=". Thats fine, but is there a way I can put this in my equation without all those if statments?
$eq = ">=";
if( $var1 $eq $var2){
would become:
if( $var1 >= $var2){
Any way to do this?
$eq = ">=";
if( $var1 $eq $var2){
would become:
if( $var1 >= $var2){
Any way to do this?