you should be working with scripted ops, expressions are very limited and very 20th century.
why dont you write your own clamp custom function... it is easy as pie.
If you are Using xsi5 go to the Plugin Manger, under File, choose new custom command...
(in xsi4 it was under Application on the pulldown menus)
Call your command Clamp.
Add 3 inputs to the _Init function , minval,maxval,param
In your _Execute function either use the
SetExpr() function to set the _expression_ to your Clamp inputs or use the
AddScriptedOp() function to build a scripted op
voila, you have a Clamp funciton... It should take about 10 minutes for
anyone with scriptin experience. You could get fancy to have clamp
working on selected parameter, on animated parameters (clamping fcurves
frinstance), or popping a property page with the parameters but that is
not so bad either.