Skip to Content

If statement along with Starts with in NW BPM

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 25, 2016 at 01:04 AM

    Hi,

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

    Add comment
    10|10000 characters needed characters exceeded