Hello Everyone,
I have attempted to convert a certain if statement to a switch statement and have failed. How would I convert it? (Code below:)
if (myString.ToLower().Contains("good") && myString.ToLower().Contains("how are you")){
GUI.Label(Rect(550,200,Screen.width,Screen.height),"Good, thank you!");
conversationInit=true;
I think I’m getting stuck because I haven’t seen a switch statement have 2 cases in one… Here’s what I tried:
switch (myString.ToLower().Contains){
case "good" && "how are you":
GUI.Label(Rect(550,200,Screen.width,Screen.height),"Good, thank you!");
conversationInit=true;
break;
}
I appreciate your help. -Hyperion