Check texbox for specific word
I am trying to figure out how to check a certain textbox contains a certain word in either upper or lowercase (XPO). If it does, then perform one action. If not then perform a different action, below is the code i currently am working with but it dosent seem to work.
var cCustomerName = this.getField("CUSTOMER NAME").value;
if (cCustomerName == "XPO"||"xpo"){
ccAddress1 = ("dan.somename@somewhere.com" + "; " + "eps@somewhere.com" + "; " + "mark.b@somewhere.com" + "; " +"jeff.s@somewhere.com")
}
else
