Scan if more than two conditions