Forum Moderators: coopster
$scaleH = ($maxH > 0)? $maxH / $h : 1;
I know that this is prob a real newb question but i have never been taught this kind of syntax before..
Is it translated to something like
if($maxH > 0){
$scaleH = $maxH / $h;
}else{
$scaleH = 1;
}
Thanks in advance.
Ally
The expression (expr1)? (expr2) : (expr3) evaluates to expr2 if expr1 evaluates to TRUE, and expr3 if expr1 evaluates to FALSE.