I would access the struct array by index in the following require statement but i have the errorenter image description here
in the require you are assigning non comparing, try using == instead of =