### Title

Evaluate

### Post

I can't see why this is not evaluating correctly: It evaluates to... $weightmultiplier2 = 2637 or the 1st value...

$weight2 = 2000

$fivehunderdlbs = 2637

$onethousand = 2191

$twothousand = 1687

Set Variable [ $Weightmultiplier2; Value:

Let ( ~w = $weight2 ;

Case ( ~w < "501"; $fivehundredlbs ; ~w < "1001" ; $onethousandlbs ; ~w < "2001" ; $twothousandlbs ; ~w < "5001" ; $fivethousandlbs ; ~w < "10001" ; $tenthousandlbs )) ]

You set your variables to number and you are checking Text with the "" in your case statement.

$ = local varible and $$ = Global variable. You didn't state where you were setting these variables, so the wrong amount could be passed to your let / case statement.

If all variables are local then use the following.

Let(~W= $weight2;

Case(~W < 501 ; $fivehundredlbs;

~W<1001; $onethousandlbs;

~W<2001; $twothousandlbs;

~W<5001; $fivethousandlbs;

~w<10001;$tenthousandlbs)

)