AnsweredAssumed Answered

Greater than or equal to in a case statement

Question asked by Kirk_1 on Aug 13, 2012
Latest reply on Aug 14, 2012 by philmodjunk


Greater than or equal to in a case statement


Im using a case statement to set the value of a varable. I have 5 weight breaks i need it to check for a true statement.

This is an example of one of them: If the weightfromquote = 5643 then set the varable to the filed that is greater than or equal to 5000 and less than or equal to 9999.

This is my expression:

Set varable [$setweightmultiplier;value:

Case ( Rate Calculation::Weightfromquote *_> 5000 and *_< 9999 ; Rate Calculation::Base_Rate_5000)

*I don't know how to get my keyboard to de greaterthan or equal to sooo.. i used _>...

This expression does not work.

I tried

Case let ([~num = (RateCalculation::Weightfromquote)]; ~num _> 5000 and ~num 9999) ; Rate Calculation::Base_Rate_5000;

It will recognize the greater than or equal to phrase but not the case of setting the $getweightmultiplier to the Rate Calculation::Base_Rate_5000

What am i doing worng?