Skip to Content
0

If statement along with Starts with in NW BPM

Nov 22, 2016 at 01:14 AM

85

avatar image

Hi Folks,

I am trying to see what functions I can use to implement the following 3 field mappings in the NW BPM. I am looking at the IF functions under string in Runles and Functions and its confusing. Also how can I Include startswith with If function? Is that something that I can achieve?

Source/Return is the input field where Return is the Boolean value

Output/out1 is the first output field

Output/out2 is the second Output field

Output/out3 is the third Output field

1) If Source/Return startswith "-" then output should be mapped with 0 else 1

2) if Source/Return startswith "-" then output should be mapped with Source/Return

3) if Source/Return doesnt startswith "-" then output should be mapped with Source/Return

Regards

kalyan.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Navdeep Singh Nov 25, 2016 at 01:04 AM
0

Hi,

if(starts-with(Source/Return,"-")) then "0" else "1"

Share
10 |10000 characters needed characters left characters exceeded