you can make it a lot easier for yourself by using a List instead of an array, then it’s just listName.Contains(stringToCheck) which is true/false depending on the result.
How to use my string as any string in a string array. According to condition the string would change to any of a string present in array. I want like this
public string[] usingsentence;
void Update()
{
foreach (string Subject in usingsentence)
{
string usingSubject;
usingSubject = Logicsx.Instance.words[1].Words[0];
//Here I want it to change the string[usingSubject] to any of string
in array[usingSencentence] according to condition.
}
}