I can't figure out how to have apart of an array match a whole array and i want to pretend that we don't know that usersInData[0,1,2,3] is the same as verifiedUsers[0,1,2,3], i want to somehow match the same value without using the index of each array.
I tried this-
var usersInData = ["hello", "hello1", "hello2", "hello3", "hello4", "hello5", "hello6", "hello7"]
var verifiedUsers = ["hello", "hello1", "hello2", "hello3"]
if usersInData == verifiedUsers {
print("special user")
} else {
print("regular user")
}
but it prints "regular user", so basically it didn't work. I want the verified users to be different than the regular users. So for example user "hello" gets a special verified icon etc. Thank you!