logical operator errors

Signed-off-by: Vince Kronlein <vkronlein@icloud.com>