kemijo
Doesn't this work?
if ($PT < 5, 3, $PT)
:?
yeah, I was about to say the same thing, but couldn't log in. This expression would usually be used to limit a value, right? In which case the two numbers would be the same, eg: if($PT<5,5,$PT) which says $PT should not be less than 5.
If you want to a minimum AND maximum limits, then check out clamp() ie:
-> exhelp clamp
float clamp (float value, float minimum, float maximum)
This is a Houdini expression function that will clamp the value
between the minimum and maximum numbers. It is used to prevent
the value from going outside the specified range.
i.e. If the value is less than the minimum number, the
minimum number will be returned. If the value is greater
than the maximum number, the maximum number will be returned.
cheers,
ben.