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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trigger RunIf Condition giving False

Hi All
I am using Run if Trigger in talend with the below condition
(String)globalMap.get("row3.STATUS")=="ACTIVE"

Value getting passed is ACTIVE but the trigger is failing and giving status as false instead of TRUE.
Please advice.
Thanks

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi tanveer,

Please use below condition:

((String)globalMap.get("row3.STATUS")).equals("ACTIVE")

Let me know if it works.

Best Regards,
Amol  0683p000009MACn.png
Anonymous
Not applicable
Author

This will work and the reason is that in Java the "==" operator checks to see whether the objects are the same (ie pointing to the same location in memory). What you wanted to do is check the value held by the object. It is like checking two boxes both containing the word "ACTIVE". "==" checks to see if the boxes are the same. ".equals()" checks to see if the contents of the boxes are the same.