1 Reply Latest reply on Mar 31, 2011 2:14 PM by mattrichard

    Negatives

    jningatogo

      I am making a budgeting application, my problem is that the applicaiton that takes a value for TotCos and subtracts Amount Saved to give a value for the amount needed and then subtracts TotCos from Amount Saved to give amount left over. See code below:

       

      TotCos.text = String(x);

      var w:Number = Number(Sav.text);

      var wx:Number = w-x

      var xw:Number = x-w

      Lef.text = String(wx);

      Needed.text = String(xw);

       

      if left.text=<0, display "0"

       

      Not sure why this isnt working. Any help is much appreciated.