是否有可能在抖动变换上执行多个条件来创建或或和?
我找到了一些关于If Else的文档,但还不能将其应用于我正在try 的东西.这是单个元素上的If Else,我需要它与多个or‘s一起使用.
[
{
"alpha": "a",
"beta": "b",
"omega": "o",
"exists": true,
"description": "goodbye world"
},
{
"alpha": "1",
"beta": "2",
"omega": "3",
"exists": false,
"description": "hello world"
},
{
"alpha": "z",
"beta": "x",
"omega": "y",
"exists": true,
"description": "hello mars"
}
]
我需要找出一个Jolt,它可以查看整个数组,并说"If Existes为True或Description is Hello world",因此它输出:
[
{
"alpha": "a",
"beta": "b",
"omega": "o",
"exists": true,
"description": "goodbye world"
},
{
"alpha": "1",
"beta": "2",
"omega": "3",
"exists": false,
"description": "hello world"
},
{
"alpha": "z",
"beta": "x",
"omega": "y",
"exists": true,
"description": "hello mars"
}
]
震撼寻找Hello World:
[
{
"operation": "shift",
"spec": {
"*": {
"description": {
"hello world": null,
"*": {
"@2": "&1"
}
}
}
}
}
]
我知道IF和筛选器或描述部分有多复杂,但我如何将它们放在一起才能像OR子句那样协调工作,例如: IF(("EXISTS"=="TRUE")|("Description"=="Hello World"))