Check for null context variable

One Star

Check for null context variable

In a "Run if" I'm trying to check and see if a context variable is null,
Either I've found a bug or I'm going about it the wrong way.
The subjob associated with the if clause never runs.
Yet, in a tMsgBox, I display the value of the context variable and it shows up as null.

If I put 1==1 in the if clause - the subjob runs - so, I know that it's evaluating the Conditional statement.
Any suggestions/ideas?
Community Manager

Re: Check for null context variable

Hello
The variable is not null, its value is 'null' and its length is 4, you can set the condition as context.variable.equals("null")
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business