First of all. Thanks for replying to me. Great fan of yours.
So, the problem is that I got quite lot of Inputs and user wouldn’t supply all the inputs every single time. which makes it a bit tricky.
Rule 1.
So when it get few countries it has to somehow figure it out the common group to which all supplied inputs or countries belongs to.
For example 1 :
Input : Polen and Ungarn (Poland and Hungary)
Output: Emerging Markets Europa & Mittlerer Osten
For example 2 :
Input : Polen and Dänemark (Poland and Denmark)
Output: Europa ex Euroland
Rule 2. If it’s only one Input or Country, then it should simply return the same country name as output
For example:
Input: Dänemark
Output: Dänemark
Rule 3: If not all countries belong to a single group. then it should return übrige (others)
For example:
Input : Polen and Dänemark
Output : übrige (Others)
In that case, i feel the easiest way is to use the contains function on a single input.
And a Collecthit policy so that you can get the turn of all possible combinations.
Ok interesting. I’m not so sure, whether this will resolve my problem but i’ll give it a try. Meanwhile, can you pls give me your inputs on Rule 2 & Rule 3?
But unfortunately, it didn’t resolve any of the problems (mentioned under Rules 1,2 & 3). Btw, Contains(…) gave me an syntax error. But without keyword “Contains” i.e. simply lie “irland”,“Wales”,“scotland” gave the desired result which you are trying to achieve.