foo = if bar >= 0 then if statistic_p(1, bar/3, 0) > 4 then 1.5u elseif statistic_p(1, bar/3, 0) > 2 then 1.2u else 1.0u endif else 0.5u endif