cancel
Showing results for 
Search instead for 
Did you mean: 

message mapping with multiple OR condition

Former Member
0 Kudos

Dear All,

Am facing a problem during message mapping. If the value is 1 or 3 or 5 or 7 then i have to pass the value p10 else p20 - pls help,

very urgent

Regards

Arun

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member335553
Active Contributor
0 Kudos

Otherwise use simple UDF

If (value == '1' || value == '3' || value == '5' || value == '7')

result = p10;

else

result = p20;

former_member335553
Active Contributor
0 Kudos

Use if without else with OR (boolean function)

Former Member
0 Kudos

Hi Anusha,

Am actually getting a substring of a string using the function substring. I have to check whether it is equal to 1 3 5 or 7 and pass p10 if it is true and p20 if it is false. can you elaborate your point.

Regards

Arun

Former Member
0 Kudos

Hi

You can also use fixed value function to do this if u have more OR statements. You put 1 - P10, 3 - P10, 5 - P10, 7 - P10 and defalut as P20. - less boxes in the graphical mapping.

br

Dawid

Former Member
0 Kudos

Arunkumar,

Easiest way of achieving this requirement would be to use a simple UDF.

Regards,

Jai Shankar