AnsweredAssumed Answered

Two conditions in a case

Question asked by Kirk_1 on Aug 22, 2012
Latest reply on Aug 22, 2012 by philmodjunk

Title

Two conditions in a case

Post

I'm trying to put two conditions in a case again and its not working.

Ive set the variables; $shipstatecalc = "~MW"  &  $constatecalc "~MW" to get the result... discounts::DcustperMW_MW

I need to test for the from region and the to region, so I need to test for all of the scenarios below.

Any suggestions?


Case (
                $shipstatecalc = "~W"  &  $constatecalc = "~W" ; Discounts::DCustPerW_W  ;
                $shipstatecalc = "~W"  &  $constatecalc = "~MW" ; Discounts::DCustPerW_MW;
                $shipstatecalc = "~W"  &  $constatecalc = "~E" ; Discounts::DCustPerW_E;

                $shipstatecalc = "~MW"  &  $constatecalc = "~W" ; Discounts::DCustperMW_W  ;
                $shipstatecalc = "~MW"  &  $constatecalc = "~MW" ; Discounts::DCustperMW_MW;
                $shipstatecalc = "~MW"  &  $constatecalc = "~E" ; Discounts::DCustperMW_E;

                $shipstatecalc = "~E"  & $constatecalc = "~W" ;Discounts::DCustPerE_W ;
                $shipstatecalc = "~E"  & $constatecalc = "~MW" ;Discounts::DCustPerE_MW;
                $shipstatecalc = "~E"  & $constatecalc = "~E" ; Discounts::DCustPerE_E;              
               
)

Outcomes