11-07-2023 10:41 AM
Hello,
I have a Snowflake select Snap that outputs values of "ABC", "AEC", "ANC", "ABK", "AMT", "AGT". I have the output stored in a mapper variable called "src_name". In the next Router Snap, I have 2 outputs that routes based on the below condition.
$src_name in ('ABC', 'AEC', AMT') and $src_name in ('ANC', 'ABK', AGT'). I am trying to use Map function to achieve this but not able to.
Any help would be appreciated.
Solved! Go to Solution.
11-08-2023 12:53 AM - edited 11-08-2023 01:54 AM
You can try:
['ABC', 'AEC', AMT'].indexOf($src_name) != -1
['ANC', 'ABK', AGT'].indexOf($src_name) != -1
BR,
Spiro Taleski
11-08-2023 12:53 AM - edited 11-08-2023 01:54 AM
You can try:
['ABC', 'AEC', AMT'].indexOf($src_name) != -1
['ANC', 'ABK', AGT'].indexOf($src_name) != -1
BR,
Spiro Taleski
11-15-2023 11:18 AM
That works perfect!! Thank You!