IFF 声明 - Informatica powerCenter

发布于 2025-01-16 21:34:04 字数 338 浏览 2 评论 0原文

我见过一个 IFF,我必须将其转换为 Java,但我不确定它的作用。 类似于:

        IFF(cod=199, mot <> 'A', null);

我有一个记录表,其中它们将通过过滤器,一列是 cod,另一列是 mot。

IFF在过滤器中,如果cod与199不同,是否因为“else”中存在空而删除该记录?

在另一种语言中它等于:?

if (code == 199) {
return mot != 'A'
} else {
return false??; or return null?
} 

I've seen an IFF that I have to translate to Java, but I'm not sure what it does.
Is similar to:

        IFF(cod=199, mot <> 'A', null);

I have a table of records, in which they are going to pass a filter, one column is cod and another is mot.

The IFF is in a filter, if a cod is different from 199, is that record deleted because there is a null in the "else"?

In another language would it be equal to:?

if (code == 199) {
return mot != 'A'
} else {
return false??; or return null?
} 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬色的秋千 2025-01-23 21:34:04

由于 IIF 位于过滤器中,因此 null 条件始终为 false,并将排除数据继续前进并从该点排除。
你可以将这两个条件合二为一 -
if (code == 199 and mot != 'A') then true else false。
因此,等效代码可以是 -

if (code == 199 and mot != 'A') {
return true
} else {
return false} 

Since IIF is in a filter, null condition is always false and will exclude the data from going ahead and excluded from that point.
And you can combine both condition into one -
if (code == 199 and mot != 'A') then true else false.
So, equivalent code can be -

if (code == 199 and mot != 'A') {
return true
} else {
return false} 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文