Change && to || in conditions judge.