say I had an array (Hello,1,2,HI,1,2)
How would I check if index 1 was = to 'Hello' is a very simple question, but cannot find an answer.
This is what I have tried,it is inside a for loop, my array is of type string:
if(array[i] == "Hello" ){
// do something
}