使用 IF 函数将两个值指定为一组

Using IF function to designate two values into 1 group

当使用 IF 函数将两个值作为一组时,出现 returns 错误,我哪里出错了?功能如下

IF("Class Code"=='U' AND 'P', 'Productive') 我试过了也没用 IF("Class Code"=='U' OR 'P', 'Productive')

如果像这样只使用一个值就有效

IF("Class code"=='U', 'Productive')

有人好心给点建议吗?

Error

我不认识这种语言,但至少据我所知,您通常需要 "or" 之后的完整比较语句。所以在你的情况下我会尝试 IF("Class Code"=='U' OR "Class Code" == 'P', 'Productive')