Hi folks,
I use the following expression as a filter for a RSS feed:
Now I want to add a second and maybe a third expression which needs to act as parallel filter options. So the second expression looks like this:
How can I 'connect' these two expressions so the filter gives the result for the first expression or the second expression or....
Kind regards
Solved! Go to Solution.
Hello @Anonymous ,
remove the @ from the expressions, put them into @or:
@Or(And(contains(string(item()?['title']), '[H/H]'),contains(string(item()?['title']), 'Microsoft')),And(contains(string(item()?['title']), '[H/H]'),contains(string(item()?['title']), 'VMware')))
*I hope I've got the brackets right
Each OR / AND can compare only 2 values/expressions, if you need more of them you must group them: e.g. evaluate the first two, then the result of the first two with the third, then the result of 1+2+3 with 4...
@or(expression1,expression2)
@or(or(expression1,expression2),expression3)
@or(or(or(expression1,expression2),expression3),expression4)
Hello @Anonymous ,
remove the @ from the expressions, put them into @or:
@Or(And(contains(string(item()?['title']), '[H/H]'),contains(string(item()?['title']), 'Microsoft')),And(contains(string(item()?['title']), '[H/H]'),contains(string(item()?['title']), 'VMware')))
*I hope I've got the brackets right
Each OR / AND can compare only 2 values/expressions, if you need more of them you must group them: e.g. evaluate the first two, then the result of the first two with the third, then the result of 1+2+3 with 4...
@or(expression1,expression2)
@or(or(expression1,expression2),expression3)
@or(or(or(expression1,expression2),expression3),expression4)
@tom_riha Thank you for all your contributions to the forum. I appreciate it very much.
User | Count |
---|---|
102 | |
38 | |
31 | |
24 | |
16 |
User | Count |
---|---|
132 | |
53 | |
52 | |
37 | |
26 |