3 Replies Latest reply on Mar 2, 2013 4:00 PM by Ned Murphy

    Help with code

    fsoender

      Can anyone help me with a code I want to sort out?

      I want the code under to work as followed.

       

      When the "ValuIn" is 1, I want "Red" to be set, and "2" for "green"

       

       

       

      if(ValueIn)

          {

               

           NewBatteryStatus = "Red";

               

          }

          else

          {

          

           NewBatteryStatus = "Green";

          

          }