3 Replies Latest reply on Feb 21, 2008 5:33 PM by ntsiii

    What's wrong with my simple syntax?

      Hi, Im trying to create a var and then check it with an if statment but its not working, whats going wrong?

      var loggedin:String = new String();
      loggedin = ("yes");

      if (loggedin == "yes")

      searchbox1.text = ("user logged in");