3 Replies Latest reply on Nov 13, 2012 8:56 AM by Test Screen Name

    Need Help w/ if(TXGetSubString)


      Hi Everyone,


      I need help saying "and" in a if(TXGetSubString) script.


      Below is part of my script:


      if(TXGetSubString("WOFCa",1,3) == "Mit")this.getField("f_new").value =

      "Philadelphia, PA 19106";else


      I want to say if(TXGetSubString("WOFCa",1,3) == "Mit") and if(TXGetSubString("FL051a",1,3) == "Cen")

      this.getField("f_new").value ="Philadelphia, PA 19106";else


      How do I say "and" in java script?


      Thanks in Advance for any help.