Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

If condition statement

Hi,
Is there a way to perform If and else statement in Talend?
for example, I'm writing an ETL and I would like to perform the following operations:
if (validation == true)
execute job A
else
execute job B
Thanks
Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi
You can right click on your subjob or any components, choose 'Trigger->Run if'.
Then set condition of 'Run if'.
Best regards!
Pedro
Anonymous
Not applicable
Author

alphamanic,
If it's an if..else.. statement to decide what output you put in a column you can use the following:
if (validation == true)
execute job A
else
execute job B
The part in front of the "?" is your if statement, the part between "?" and ":" is your condition if your IF condition is true. The part after ":" is your else statement.
( Validation == true) ? Execute job A : Execute job B

If it's to execute a job you can use what Pedro suggested.
Regards