I have an if statement that should go to the else part of the block when they do not align, but for some reason, the if statement goes through no matter what
if detector:GetAttribute("Straight") and nextstop[2] == straightsplit[1] or straightsplit[2] then
print(nextstop, straightsplit)
print("straight server")
SwitchModule.Straight(straight, switch)
else
print("switch server")
SwitchModule.Switch(straight, switch)
end