substituting your values for the variables that contain them produces:
~newRate = Case ( 154 > 299.54 ;
Since 154 is NOT greater than 299.54, the result of 154 is returned.
and you could simplify this expression as:
Case ( $discountcustminfsc > $bottomLineNumber ;
There's no need in the expression you've posted for the Let function. (But perhaps this is actually part of a more complex caculation where you need that let function.
I'm struggling with this today...
What I'm trying to do is... if there is a number in $adjustedClassMultiplier then use that number for $ClassMultiplier.
This does not return a value...
Set Varable [ $classmultiplier; value:
Case ( $AdjustedClassMultiplier > "" ; $AdjustedClassMultiplier )
Try $AdjustedClassMultiplier > 0
Not IsEmpty ( $AdjustedClassMultiplier )