Fixing boolean logic on perforce