mercredi 3 juin 2015

Javascript in Unity If(var="this" OR "that"){//do something}

Im kind of new to unity Javascript and Im not sure how to make the following code work:

if(response!==("usernamewrong" OR "passwordwrong")){
    print("login Wrong");
  }else{
    //if anything else other than the two shows up into the response goes here
   }

Aucun commentaire:

Enregistrer un commentaire