so i have this code

for _,mentor in pairs(data.MentorCards) do
    local mentorname, mentortimezone, mentorcourses = mentor.name:match("(.+)%s?-%s?(.+)%s?-%s?(.+)")
    if tostring(data.Player.Name) == tostring(mentorname) then
                
    end
end

and if the if statement returns false it doesnt continute with the for loop, I need some help with this.