0

I want use if-else to handle show an item when the value is not null. when vars.request-id != null or not isEmpty(vars.request-id) output {requestID:"" ,origin_uri:"", errorDesc: ""}

when vars.request-id == null or isEmpty(vars.request-id) output {origin_uri:"", errorDesc: ""}

but the following code is Unable to resolve

{
   requestID : ("Midend-correlation-id": vars.request-id) if (vars.request-id != null) 
   origin_uri: vars.errorContent.uri
   errorDesc: vars.errorContent.message
}
1
  • Can you post a sample input and expected output ? That helps better than explaining at times. Commented Jan 2, 2021 at 7:07

1 Answer 1

1

Is this what you are after? I am not very clear on the ask and from what i understand i tried to scribble something for you. Maybe a clear input , some condition and the expected output would help..

enter image description here

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

yes, it showed "Unable to resolve" in my project. but it can pass in my testing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.