If statement UnityScript If(var=“this”或“that”){//do something}
我不确定如何使以下代码正常工作:If statement UnityScript If(var=“this”或“that”){//do something},if-statement,unity3d,unityscript,If Statement,Unity3d,Unityscript,我不确定如何使以下代码正常工作: if(response!==("usernamewrong" OR "passwordwrong")){ print("login Wrong"); } else { //if anything else other than the two shows up into the response goes here } 在条件中执行多个检查时,必须明确: if (response == "usernamewrong" || response =
if(response!==("usernamewrong" OR "passwordwrong")){
print("login Wrong");
} else {
//if anything else other than the two shows up into the response goes here
}
在条件中执行多个检查时,必须明确:
if (response == "usernamewrong" || response == "passwordwrong")
if(response===“usernamebrow”| | response==“passwordError”){
是不是不等号==?yes和no:;)但如果它不等于这两者中的任何一个,则相同?yes:if(response!=“usernamebrow”| response!=“passwordError”)