1 Reply Latest reply on Sep 21, 2006 10:05 AM by derobinson

    Need help with comparing variables values

    Level 7
      I am asking how can i compare a variable loaded from a txt file with a tex
      in an input text

      For example

      if(variable loaded from txt file = = input_txt.text){
      do the following
      }else {
      do the following

      Please Guys i need this help toooooo muchhh

        • 1. Re: Need help with comparing variables values
          derobinson Level 1
          You're already pretty much there. You name the variable in the text file (e.g. "var1"). That var should be available to you upon successful load of the file. Just put that variable name in the first part of your IF statement. The second half looks fine. (You could add something to make sure the user has typed something into the input box.)

          Good luck!