2 Replies Latest reply on Jan 22, 2013 3:16 PM by Kirk_1

    Why does this script evaluate the way it does?

    Kirk_1

      Title

      Why does this script evaluate the way it does?

      Post

           $bottomLineNumberDWW2  = 171.42

           $bottomLineNumberweighttwo = 183.69

           Why does this evaluate (Rates Display::RDRate) = 183.69?

            

           Let ([

            

                           ~newRate = Case ( GetAsNumber ($bottomLineNumberDWW2)  <  GetAsNumber ($bottomLineNumberweighttwo) ;

                                                                                                             GetAsNumber ($bottomLineNumberDWW2) ;

                                                                                                              GetAsNumber ($bottomLineNumberweighttwo)   )] ;

                           Rates Display::RDRate1

           )

        • 1. Re: Why does this script evaluate the way it does?
          philmodjunk

               Let ([~newRate = Case ( GetAsNumber ($bottomLineNumberDWW2)  <  GetAsNumber ($bottomLineNumberweighttwo) ;
                                                       GetAsNumber ($bottomLineNumberDWW2) ;
                                                       GetAsNumber ($bottomLineNumberweighttwo)   )] ;

                        Rates Display::RDRate1
                       )

               The text in blue has no effect on the value returned. this field simply returns the current value of Rates Display::RDRate1.

          • 2. Re: Why does this script evaluate the way it does?
            Kirk_1

                 Thank you, I see that now.

                 I copied it from another and took out a +~newRate at the end of Rates Display::RDRate1.

                 Ill focus more, i appreciate your help.