Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
pgfitzpatrick
Partner - Contributor II
Partner - Contributor II

tExtractJSONFields conditional statement

Pretty new to Talend and I have a simple job that calls a REST API, parses the response and should call a 2nd REST API based on a field value returned in the 1st call.talend-restclient.png

 

Based on the screenshot/mappings above, what would be the correct 'if' statement for this?
eg: (connState == "<some string")
TIA.

Labels (3)
1 Solution

Accepted Solutions
pgfitzpatrick
Partner - Contributor II
Partner - Contributor II
Author

I did figure out a solution. Detailing it in case it helps others.

 

talend-job3.png

 

 if condition is:
row2.<output-var>.toString().indexOf("<some-str>")

 

View solution in original post

1 Reply
pgfitzpatrick
Partner - Contributor II
Partner - Contributor II
Author

I did figure out a solution. Detailing it in case it helps others.

 

talend-job3.png

 

 if condition is:
row2.<output-var>.toString().indexOf("<some-str>")