IIF help
Posted: Fri Sep 05, 2003 4:54 pm
I have the function IIF:
function iif($expression,$true,$false){
if($expression){
return $true;
}else{
return $false;
}
}
When I call it:
<? iif(1=1,'yes', 'no'); ?>
I get a parse error... can anyone shed some light ontot this???
function iif($expression,$true,$false){
if($expression){
return $true;
}else{
return $false;
}
}
When I call it:
<? iif(1=1,'yes', 'no'); ?>
I get a parse error... can anyone shed some light ontot this???