AnsweredAssumed Answered

Proper scripting

Question asked by Kirk_1 on Sep 28, 2012
Latest reply on Oct 1, 2012 by Kirk_1

Title

Proper scripting

Post

     The script below is part of a set field.

     This is what i need it to do... if $fak = 50 then add Fontier_Mars::AE_22 to Fontier_Mars::CF_22

     It does not.

     Is it because i have 2 evaluations? How can i script it?

      

     Case (
         $fak = 50 ; $cl50= Fontier_Mars::AE_22 + Fontier_Mars::CF_22 ;
         $fak = 55 ;  $cl55= Fontier_Mars::AE_21 + Fontier_Mars::CF_21  ;
                     $fak = 60 ;  $cl60= Fontier_Mars::AE_20 + Fontier_Mars::CF_20   ;
         $fak = 65 ;  $cl65= Fontier_Mars::AE_19 + Fontier_Mars::CF_19  ;
                     $fak = 70 ;  $cl70= Fontier_Mars::AE_18 + Fontier_Mars::CF_18   ;
         $fak = 77.5 ; $cl77= Fontier_Mars::AE_17 + Fontier_Mars::CF_17  ;
                     $fak = 85 ;  $cl85= Fontier_Mars::AE_16 + Fontier_Mars::CF_16  ;
         $fak = 92.5 ; $cl92= Fontier_Mars::AE_15 + Fontier_Mars::CF_15  ;                 
         $fak = 100 ;  $cl100= Fontier_Mars::AE_14 + Fontier_Mars::CF_14  ;
         $fak = 110 ; $cl110= Fontier_Mars::AE_13 + Fontier_Mars::CF_13  ;
                     $fak = 125 ; $cl125= Fontier_Mars::AE_12 + Fontier_Mars::CF_12  ;
         $fak = 150 ; $cl150= Fontier_Mars::AE_11 + Fontier_Mars::CF_11  ;
                     $fak = 175 ;  $cl175= Fontier_Mars::AE_10 + Fontier_Mars::CF_10  ;
         $fak = 200 ;  $cl200= Fontier_Mars::AE_09 + Fontier_Mars::CF_09  ;
                        $fak = 250 ; $cl250= Fontier_Mars::AE_08 + Fontier_Mars::CF_07  ;
                     $fak = 300 ; $cl300= Fontier_Mars::AE_07 + Fontier_Mars::CF_06 ;
                        $fak = 400 ; $cl400= Fontier_Mars::AE_06 + Fontier_Mars::CF_04  ;                 
         $fak= 500 ; $cl500= Fontier_Mars::AE_05+ Fontier_Mars::CF_03  ;
     )

Outcomes