in reply to And plus OR

Search Wiki for De Morgan's Laws:
if ($username eq $security && !($type eq "Check In" || $type eq "Check + Out")) { }