If condition statement

One Star

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
One Star

Re: If condition statement

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

Re: If condition statement

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